Hi, The current version of gallery 2 I have installed is working really well. It makes me look ahead to the future and a possible loose end navigation. Since data is so easily added (I already have 70 sub-albums and 4K images). I'm hoping we can have a module for drop-down menu built into the template. I know this was a hack I installed on my G1 install and it was priceless in allowing users to get to the album/sub-album they wanted to view.
Thank you very much!
Posts: 8601
we're happy to give you guidance on how to add on functionality.. but you'll have to describe a little more what you'd like to do.
also try out the classic layout that was added recently.. it has the subalbum links like the G1 top level album, but in G2 you can use that layout anywhere you like, not just the top level.
Posts: 22
My main request is to have a drop-down menu of all albums and sub-album's within the main gallery. I'd like to see this embedded into the menu or as an option. This will make navigation much easier once users have thousands of photos and hundred's of albums within their galleries.
You can see what the G1 hack in action with my previous G1 install:
http://www.cruise-addicts.com/gallery/index.php
Posts: 32509
a drop down list with hundreds of entries?
that won't work usability-wize.
drop down menus are viable for < 30 entries i guess.
perhaps a hierarchical approach with javascript would work better. you point in the menu on a top album, then javascript displays subalbums of this album, etc.
or an autocompletition album search
edit: having looked at your G1 hack, i 'd say it works quite well for 100 albums and more. it's just not for first time visitors.
Posts: 8601
so, the normal way to add this is G2 is:
1) create a new module that registers loadSystemContent callback in the constructor
2) loadSystemContent calls GalleryCoreApi::fetchAlbumTree then loadEntitiesById to get the album hierarchy
3) smarty template creates the select box
the little problem is this will add the select box in the G2 sidebar.. i think it's a bit wide to be placed there.. once you get that far we can see about using a *.tpl.local to put it somewhere else. let us know if you have questions on how to get started.
Posts: 22
I can't personally write the module myself, unfortunately. I'm just not that good writing code. I would like to see this done for obvious selfish reasons. I think it would look very good within the matrix template, centered below the album's title.
This would be out of the way and blend in nicely within the page, IMHO.
If need be, I'd be willing to pay for this support since I'm no profficient enough with the code itself.
Posts: 32509
then add a feature request, describe what you want, add a link to your G1 example and to this forum thread.
this is no promise that it will be integrated, but at least interested developers will see your feature request and might think, "hey, that's a good idea. i'll do it.".
-> http://sourceforge.net/tracker/?group_id=7130&atid=357130
Posts: 8601
Cruise, thanks for your contribution.. here's the module and sample *.tpl.local files for matrix layout showing how to use it. Enjoy!
Posts: 22
Can the album list be alphabetized for a cleaner display? At the moment it's sorting it by oldest to newest only. If we got really fancy this could be toggled with options within the module.
Posts: 8601
actually right now it is sorting by album order (the order you would see if the album uses "manual sort"). the attached upgrade to module.inc makes it easy to add in the sort.. find the $sorter = null line and replace it will the commented text using a sorter based on title.
Posts: 8601
i added a couple site admin options and committed this module to cvs.