How-To use META-tags and Keywords feature in MODx
(for MODx version 0.9.5)
Short FAQ :
Q: Did i have to use a special TV in my template to use the MODX META-Tag/Keyword default feature ?
A: No. The default META-Tag feature is independant from the template engine, if you have manualy added META information in your templates/chunks they may be duplicated. So please check first than a META information is used only once, either in the manager or manually inserted in your template.
Q: Did this feature is by default activated ?
A: No. You can manage META stuff completly in your templates/chunks if your prefer with no inteference with the default MODx instaled META-Tags. If you want to activate it you have to do it per/page basis.
How to add a META-Tag/keyword step-by-step :
- 1 : Into the manager, go to ressources -> Manage META-Tag and Keywords
- 2 : Add/remove or change the default META/keywords in this page. Be careful the page is not actualy (0.9.5) very consistant in the Add-Delete order (Add Meta/change-delete Meta/change-delete keyword/Add Keyword).
- 3 : Go to the page you want to activate them, e.g. "Home" page.
- 4 : Click on "Edit" and on "META Keywords".
- 5 : Click on the META and keywords you whant to activate. Use CTRL+click (cmd-click on Macs) if you want to activate more than one.
- 6 : Click on the "Save" buton at the top of the page. The Feature is "automatic" you don’t have to add a TV in your templates.
- 7 : Go to preview the page and check the source in your browner to see if everything worked as expected.
Note : The feature is (as I understand) implemented on a per-page basis
so it may not be very convenient to use them in a huge site. Here is a template trick as a workaround to modify them with quickedit without the use of the manager.
1) The "Description" META Tag :
Add the following code into your template between <head> and </head> balises.
<head>
<meta name="description" content="[*description*]" />
</head>
2) The "Keywords" META Tag :
<head>
<meta name="keywords" content="[*introtext*]" />
</head>
This last one is a realy a "bad" trick.. Is better to avoid it but ....
Questions needing answers :
1) Is there a way to activate the defined META & keywords "in one click" on all pages ? --> See reply from Banzai about @INHERIT method
2) Did the developer will work on the META administration in future ?