Jump to: navigation, search

This extension allows the addition of HEAD meta tags through the use of the magic word {{#metatags:tag1=value|tag2=value}}.


Simply insert the keyword and a pipe-delimited list of name-value pairs. The hard part is knowing which keywords to use. Here is an example:

| description=This is a description
| keywords=Keyword1, Keyword2
{{#metatags:description=This is a second description}}

will produce the following the the HTML HEAD section:

<meta name="description" content="This is a second description" />
<meta name="keywords" content="Keyword1, Keyword2, Keyword3" />

Note that the last description defined replaces previous definitions, while keywords accumulate so they may be added in several places on the page. “Keywords” is the only metatag that accumulates.

The PHP code for this extension is posted here.

Personal tools