Not a developer? Go to MovableType.com

Documentation

SearchAlwaysAllowTemplateID

This is documentation about a configuration directive, which can be placed within Movable Type’s core configuration file, mt-config.cgi, to customize the behavior of the system.

Allows use of template_id parameter in query string and .php or .asp file extensions for Pagination for Static Templates.

By default, MT requires that templates using Static Pagination must not have .php or .asp extensions, and that they must be of archive type “Entry” or “Entry Listing” and if index template, the Template Type must be “main_index”.

This was added for security concerns as displaying a template via CGI will reveal PHP/ASP code which may contain sensitive data not designed to be viewed by the end user and because this code wouldn’t be executed. Although there are ways to run PHP under CGI, this config directive was added as a safety measure.

Tip: It is possible to Condition Static and Dynamic Content using the variable search_results in the template used for search results.

Default

Disabled by default.

SearchAlwaysAllowTemplateID 0

Examples

To enable:

SearchAlwaysAllowTemplateID 1
Back

Leave a Comment