Show collections in "Latest Pages" block

Bug #1476491 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Aaron Wells
15.10
Fix Released
Undecided
Unassigned

Bug Description

Currently the "Latest pages" block only shows pages, not collections. Pages that belong to collections are listed individually.

We should alter this block so that it shows a list of collections and pages, mingled together. So, the block will show one entry for each collection, and one entry for each "solo page" that doesn't belong to any collection. For collections, the "last updated" date will be the most recently updated page on the collection.

To distinguish collections from pages, the collections will show "Collection title (X pages)" similar to how collections are shown on the edit access screen.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/4998

Revision history for this message
Aaron Wells (u-aaronw) wrote :

To test:

1. Create collections C1, C2, C3
2. Create pages P1A, P1B, P2A, P2B, P2C, P4, P5
3. Put pages P1A & P1B into Collection C1
4. Put pages P2A, P2B, P2C into Collection C1
5. Edit the description of P1B.
6. Edit the description of P4.
7. Edit the description of P5.
8. Edit the description of P2B.
5. View the "Latest pages" block on your dashboard

Expected result: You should see these listings in the block, in this order: "C2 (3 pages)", P5, P4, "C1 (2 pages)"

Revision history for this message
Aaron Wells (u-aaronw) wrote :

(Collections that don't have any pages are not listed in the "Latest pages" block, because they don't have a display URL.)

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

Reviewed: https://reviews.mahara.org/4998
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/1d31928b3ab6c1bfb6af25d500540bc10815a29a
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 1d31928b3ab6c1bfb6af25d500540bc10815a29a
Author: Aaron Wells <email address hidden>
Date: Mon Jul 20 18:33:34 2015 +1200

Show collections in "Latest pages" block (Bug 1476491)

Change-Id: I0ee53499dfb6b5a9fc6b77b12244e2ec7391334c

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

This feature was sponsored by Pratt Institute in Brooklyn, NY. Thank you very much.

Changed in mahara:
status: In Progress → Fix Committed
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.