Hi!
i have question:
How could I make a simple mySQL Query and insert the result into any type of Template?
for example: I have the searchmodul Template (SearchScan.tpl) and i want to insert a list of all albums into a pulldown menu. How can i insert this query? Into the .class file? And how can i call and execute it? With the .inc file?
I hope u understand my questen :/
best regards
Posts: 27300
Why not just include the album select block or AlbumTree to the sidebar then it is visible all the time nit just on the search results page?
The other option is to add the block manually to the template file of the SearchScan.tpl:
http://codex.gallery2.org/Gallery2:Themes:Reference:Blocks
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 9
Thx Dave, but i need the list to be in a dropdown menu to select in which album the user wants to search.
Can i realise this by adding the block manually?
I tried to add
to the SeachScan.tpl but nothing happens. Some other blocks work. Why?
Posts: 27300
I bet you need to add the JS as well:
this will not slect the album that the user searches in, it just provides a dropdown for navigation to the album they select.
I know of no specific modification to choose what album to search in.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 9
So i have to write a new block for this i think.
thx dave