The Movable Type Knowledge Base

Default Search Template Changes

Question

How do I make changes to the default search template visitors see when searching my weblog?

Answer

You can modify the search template by downloading the search_templates/default.tmpl file from your server and editing it with a plain text editor. Then upload it back to your server in ASCII mode.

Power Tip

You can more easily manage your default search template (and any alternate search templates) by linking them to a new Template Module.

Create the new Template Module, and enter the full server path to the default search template in the Link this template to a file field. Then press SAVE. You should see the contents of the template appear in the Template Body window. You can now edit and save changes directly to the file.

Note that this tip will only work if you have disabled SafeMode in mt-config.cgi1 by uncommenting the setting2. Disabling SafeMode is not recommended for multi-author installations due to security reasons.

1 In versions prior to 3.2, the configuration file is named mt.cfg.

2 To uncomment a setting means to remove the # from the beginning of the line where it appears.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.