TopTail module
Dynamic Header and Footer support
Overview
The TopTail module can optionally: prepend a header and/or append a footer, to any document requested by a client browser. The TopTail module requires the HTAccess module to be enabled as all the configuration for TopTail is done through .htaccess files for greater flexibility.
Configuration
The htaccess module can be used to configure this module. Directives available are:
- PageHeader
The PageHeader directive can be used anywhere in an htaccess file and defines the URL for the web server to find the header. This means that your header must be inside your docroot and be readable by the child web server processes.- PageFooter
The PageFooter directive can be used anywhere in an htaccess file and defines the URL for the web server to find the footer. This means that your footer must be inside your docroot and be readable by the child web server processes.Example
A sample htaccess directive looks like this:<Files *.html> PageHeader /_private/header.html </Files>The above htaccess fragment would prepend /_private/header.html to any file whose name matched *.html.