For a website of one of my clients I've created a dropdown menu with all albums in it, and when selected you're redirected to the correct album, as can be seen here:
http://ruudvanderveldenkunst.nl/collectie/
The relevant part of the template to create this, looks like this:
Code: Select all
{* Album List *}
{if !$album}
{section name=album loop=$categories}
<div class="album_content">
<h3>{$categories[album].category->name}</h3>
{if !empty($categories[album].category->comment)}<p>{$categories[album].category->comment}</p>{/if}
{$categories[album].albums_content}
</div>
{/section}
<div class="clear"></div>
<h3>Selecteer schilder</h3>
<p>Selecteer één van de schilders om zijn werken te zien.</p>
<select name="albumlist" onchange="location.href = this[this.selectedIndex].value;">
<option value="0">Selecteer een galerij</option>
{foreach from=$albums item=album}
{$album->category}
<option value="{$album->link}">{$album->name}</option>
{/foreach}
</select>
[...]
Jasper