MODx: Making Documents more Google Friendly

In order to do that, create two Template Variables bound to your Template:
_ keywords
_ description
Then insert them in the head of your template:
Your can access them in your PHP code (maybe it could be useful in some snippet) like this:

$modx->getTemplateVar('metaKeywords', '*', $modx->documentIdentifier)
This entry was posted in MODx and tagged . Bookmark the permalink.

Leave a Reply