tips and tricks for movable type

alternate search templates
November 02, 2002

Just in case anyone else is using Alternate Search Templates in MT, here's something it took me about an hour to figure out!

Not only do you need to include the input hidden statement in your main search form (on your index page, wherever), you also need to include it in your alternate search template.

<input type="hidden" name="Template" value="tips" />

I don't know why my brain didn't make that leap when I first set up the alternate template for this blog, but there you have it.

P.S. And just in case it isn't obvious as well, if you want to restrict the search to one blog, the same rule applies to the input hidden statement for that:

<input type="hidden" name="IncludeBlogs" value="8" />

Goes both places - search form on main page, search form in alternate template.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/109)