Help - Search - Members - Calendar
Full Version: Archive by Author?
Movable Type Community Forum > Additional Resources > Tips and Tricks
vind
hello,

I'm adding a drop down menu so users can navigate by category. It worked fine. But now i'm trying to reproduce it so that users can browse by Author? How can I do this? thanks.

Here's the code:

CODE
<form name="jump author">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="">Browse by Author</option>
<MTArchiveList archive_type="Author">
<option value="<$MTArchiveLink$>"><$MTArchiveTitle$></option>
</MTArchiveList></select>
</form>
ndns
To do this, you'll need to have author archives setup. If you don't already, there is a tutorial at scriptygoddess written by Kristine. Just use the search engine at the top of the page to search for author archives.

You will probably have to write the dropdown box by hand, for example:
CODE
<form name="jump author">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="">Browse by Author</option>
<MTArchiveList archive_type="Author">
<option value="old/author.php#name1">Name 1</option>
<option value="old/author.php#name2">Name 2</option>
<option value="old/author.php#name3">Name 3</option>
<option value="old/author.php#name4">Name 4</option>
</MTArchiveList></select>
</form>

Does that help?
vind
yes! thank you.

I wonder why MT doesnt have archive by author built in..
kadyellebee
QUOTE
I wonder why MT doesnt have archive by author built in..

Its on the requested features list. smile.gif

Kristine
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.