-
☆ A M B ☆
- 894 Posts
Try using
<meta name="keywords" content="[[*keywords:default=`[[*content]]`]]" />
What this does is if the keywords TV is empty it will use the content TV as its value.
You can do this TV's, Placeholders and System/Context Settings as well.
Hope that helps.
[ed. note: benmarte last edited this post 14 years, 7 months ago.]
-
☆ A M B ☆
- 2,213 Posts
You might be better of with something like:
[[*keywords:notempty=`<meta name="keywords" content="[[*keywords]]" />`]]
This would hide the keywords meta if none are present vs dumping the content into the keywords field which may hurt more than it helps.
If you look at MetaX 2.0 it takes an approach more along these lines.