View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001370 | Composr | galleries | public | 2013-08-26 04:53 | 2013-08-28 18:23 |
Reporter | Rishi Saravanan | Assigned To | Chris Graham | ||
Severity | Feature-request | ||||
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Fixed in Version | |||||
Summary | 0001370: Upgrade to main_recent_galleries block | ||||
Description | Hello, 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). | ||||
Tags | No tags attached. | ||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||
|
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. |
|
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. |
|
main_recent_galleries.php (3,186 bytes) |
|
very good, working well, thank you |