MetaX Installation
Simply copy and paste the MetaX php code into a new Snippet. Name the snippet MetaX with a description of:
<strong>1.3.1</strong> - Generates HTML Base, Meta and Link Tags.
Setting the Variables
In the snippet are variables that you should take a look at to make sure they meet your needs. Ensure that you have a TV for your keywords. By default this program looks for keywords in a TV called "keywords", if you want to change the name of the TV, edit the variable for this in the variables section.
Calling the Snippet
Then simply call the snippet in the head of your document template.
- Evolution:
[!MetaX!]
- Revolution:
[[!MetaX]]
To make use of the &language and/or the allkeywords parameters with vaules other than the default:
- Evolution:
[!MetaX?language='sp' &allkeywords='Site_Keywords'!]
- Revolution:
[[!MetaX?language='sp' &allkeywords='Site_Keywords']]
Template Variables
The following tags require the use of TVs or Chunks within MODx to display and/or use their full functionality. The specific TV or Chunk used can be set using snippet parameters or in the variables section of the PHP code.
- Keywords - Uses "keywords" TV and "AllKeywords" Chunk by default.
- DC.coverage - Uses "dccoverage" TV by default (only if Dublin Core is enabled).
- DC.source - Uses "dcsource" TV by default (only if Dublin Core is enabled).
- DC.relation - Uses "dcrelation" TV by default (only if Dublin Core is enabled).
If you use the Dublin Core functionality, I suggest you view this page and ensure you are putting the right content in the Source and Relation tags http://dublincore.org/documents/usageguide/elements.shtml