Help - Search - Members - Calendar
Full Version: Archive Popup Menu
Movable Type Community Forum > Additional Resources > Tips and Tricks
girlie
Thanks Jeremy, I'll have to keep this in mind for when my archive list gets too long!

smile.gif
jeremyw
I didn't see this tip anywhere else, so sorry if I'm duplicating information!
I didn't like having a big long list of archive links on my main page but still wanted to access them all from the main page so I turned to JavaScript and found a nice solution: a popup menu of archives.
Try this in your Main Index template:
CODE
<div class="sidetitle">
Archives
</div>

<div class="side">
<form name="menu">
<select name="featuremenu" size="1" onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">
                       
<option selected>select monthly archive</option>
<option></option>
<MTArchiveList archive_type="Monthly">
<option value="<$MTArchiveLink$>"><$MTArchiveTitle$></option>
</MTArchiveList>            
</select>
</form>
</div>
johnkranz
I was looking for the same solution for a pop-up for monthly archives, so thanks for posting.

Does anyone have the code handy for creating a pop-up to view stories by category?

Also, I have two "classes of categories" I'd like to split up into two separate menus -- one for category by publisher name, and another for article type. Is there a way to have movable type limit the display of certain 'named' categories so I can split them up between the two popup menus?

example...

Popup #1 by publisher
...publisher A
...publisher B
...publisher C

Popup #2 by news type
...newstype 1
...newstype 2
...newstype 3

Please note that all of the above are categories, but just different 'classes' of a category. Hope someone can help.

My e-mail is: kranz@earthlink.net
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.