Ticket #184 (new enhancement)
Flexible + dynamic collection / album layout
| Reported by: | sidtheduck | Owned by: | sidtheduck |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by sidtheduck) (diff)
Currently, Plogger is set up as a rigid system using collections and albums
main collection
/ \
collection collection
| |
album album
| |
pictures pictures
I would like Plogger to move in the direction of a more liquid, flexible layout that still utilizes Collections and Albums, it just extends it.
Before: Collections housed Albums -> Albums housed Pictures
Proposed: Collections house Albums OR Collections -> Albums still house Pictures
main collection
/ | \
collection album collection
| | |
album pictures collection
| |
pictures album
|
pictures
jammindice started something like this from this forum post but his logic add another table to Plogger and only allows 5 levels deep (which should be good in most people's cases).
However, I think it could be accomplished much easier by setting the "base collection" (the collections.php file) as id=0. Then add an SQL column in the plogger_collections table for "parent_id" (much like the plogger_album table). The full path for collections + albums could be stored in the "path" column (much like the plogger_pictures table) and let it sort out that way.
I know this is a large undertaking, but I really think it would be great to have the flexibility (i.e. if some people only have 1 album or if people want to go 3 levels deep, etc.). From my initial thinking there will be more issues with the admin backend than with the gallery front end (mostly in the "Manage" tab). Also, we will have to re-work how the count is displayed (i.e. this collection contains 9 albums will now be this collection contains 2 collections and 7 albums).
What do others think? Should I undertake this re-work to make it part of the core, or is everyone happy with the rigid structure as is?
