Sort files in the “Folder” block

Bug #1233896 reported by Robert Lyon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

When users place the “Folder” block onto a page
anywhere on the site, they can decide whether the files and folders contained in the
folder that they want to make available, are sorted in ascending or descending
order.

Aaron Wells (u-aaronw)
tags: added: folder
tags: added: folders
removed: folder
tags: added: files
Revision history for this message
Robert Lyon (robertl-9) wrote :
Changed in mahara:
status: New → In Progress
Revision history for this message
Robert Lyon (robertl-9) wrote :

also part of this patch is the ability to click on any subfolder listed in the folder block and view that subfolder on the view/artefact.php page and still retain the sortorder defined in the block.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2562
Committed: http://gitorious.org/mahara/mahara/commit/bae6a91aa3ebc6ee651b4324b263321405af268a
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit bae6a91aa3ebc6ee651b4324b263321405af268a
Author: Robert Lyon <email address hidden>
Date: Tue Oct 1 09:42:11 2013 +1300

Asc/desc sort order option added to folder blocktype (bug 1233896)

- also updated to view/artefact.php to allow it to repect the sortorder
chosen by the blocktype

- also got 'if artefact in view' to test the base parent artefact rather
than the subfolder artefact to see if it is allowed

Change-Id: Ic2f8c6b1673701a10751cf46c3bd9dc278fadceb
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Revision history for this message
Steven (stevens-q) wrote :

=== Bug Description ===

 * When users place the “Folder” block onto a page anywhere on the site, they can decide whether the files and folders contained in the folder that they want to make available, are sorted in ascending or descending order.
 * also part of this patch is the ability to click on any
sub folder listed in the folder block and view that sub-folder on the view/artefact.php page and still retain the sort order defined in the block.

===== How to test =====

1. CREATE of EDIT any portfolio page
2. SELECT a folder block found under the Media tab of the content chooser panel and add it to the page
3. CONFIRM that a user can decide which folders they wish to make available on the page
4. CONFIRM that a user can sort the files either by ascending or descending order
5. CONFIRM that when a user chooses a different folder that the order is kept the same

===== Test Results =====

3. CONFIRMED that a user can decide which folders they wish to make available on the page ✔
4. CONFIRMED that a user can sort the files either by ascending or descending order ✔
5. CONFIRMED that when a user chooses a different folder that the order is kept the same ✔

Catalyst QA Approved ✔

Revision history for this message
Steven (stevens-q) wrote :

===== How to Test - configuring the file/folder as an admin =====

1. LOG IN as an admin
2. BROWSE to Administration => Extensions => Plugin type: Blocktype => file/folder [configuration]
3. From the drop down list SELECT Descending
4. BROWSE BACK to main site to a Portfolio page and ADD a folder block
5. CONFIRM that the sort order of files is set to the same default (Descending) as in step 3 above

===== Test Results =====

5. CONFIRMED that the sort order of files is set to the same default (Descending) as in step 3 above ✔

=== BUG ===

1. "Sort order of files" label should say "Default Sort Order of Files"

Catalyst QA Failed Testing ✘

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/2779
Committed: http://gitorious.org/mahara/mahara/commit/8b56c23d0ef8c969c7409c9abbb56457bc0d1ecd
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 8b56c23d0ef8c969c7409c9abbb56457bc0d1ecd
Author: Robert Lyon <email address hidden>
Date: Mon Dec 9 08:39:59 2013 +1300

Adding the sortorder as plugin config option (bug 1233896)

Requires upgrading the plugin to work on administration page
then one can set the sort order on Extensions -> file/folder ->
configuration

Signed-off-by: Robert Lyon <email address hidden>

Change-Id: I24cda8e7361fc57f66bb391b3cf533c904ba2c38

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.