View Issue Details

IDProjectCategoryView StatusLast Update
0001370Composrgalleriespublic2013-08-28 18:23
ReporterRishi SaravananAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0001370: Upgrade to main_recent_galleries block
DescriptionHello,
I was wanting to have a page on our website which would show a listing of the latest updated photo/video galleries. I thought I could use the main_recent_galleries block but I didn't read it closely enough and didn't realize that it only shows newly created galleries, not also the existing galleries that were most recently added to. It would be great to modify the block to allow for displaying both (in the same list without distinguishing).
TagsNo tags attached.
Time estimation (hours)1
Sponsorship open


If users wish to sponsor this issue (optional, some issues are implemented without sponsorship)...
If users wish to sponsor this issue (optional, some issues are implemented without sponsorship)...

Activities

Chris Graham

2013-08-27 10:17

administrator   ~0001676

Hi,

I have put 1 hour on this, because it's a fairly simple change. However, I believe we'll be dropping this block in v10 in favour of allowing main_multi_content to be more flexible. For 1.5 hours (i.e. extra 0.5 hours) we'd update the main_multi_content block in v10 (ready for when that is released), so that that can do it for all content types.

Chris Graham

2013-08-28 14:59

administrator   ~0001679

I've attached a sources/blocks/main_recent_galleries.php file. This does the sorting by recency of constituent images/videos. I haven't parameterised this, so the new sorting behaviour simply replaces the old one. It sorts based on direct entries of the gallery, not deeper entries - as I think we would not want the whole parent tree showing as updated.

(Rishi, I haven't uploaded this for you: as it's a simple upload, I thought it best you upload at your convenience so it kicks in exactly when you expect it to)

Equivalent functionality in main_multi_content will be added in v10. That will be parameterised.

Chris Graham

2013-08-28 16:13

administrator  

main_recent_galleries.php (3,186 bytes)

Rishi Saravanan

2013-08-28 18:23

reporter   ~0001680

very good, working well, thank you

Issue History

Date Modified Username Field Change