NEW TO VERSION 4.0
TEMPLATE CONTROL: This tag can be used in detail templates to alter the title, keywords, and description meta tags of the hosting web page. This is done by including <title>, <keywords>, and <description> inner tags. Only one <xmod:metatags> tag should be used in the template. While you can only specify one of each <title>, <keywords>, and <description> tags, you can just use only the tags you want. If you only want to change the page's title, you would only use the <title> tag and not specify <keywords> and <description>.
There are no attributes for the <xmod:metatags> tag.
|
append |
Optional. Valid Values: true or false (the default value). If true, XMod will append the tag's inner text to the existing page's Title. If false, XMod will replace the page's title with the tag's inner contents. |
Note, for this tag to function correctly, you should set a default Keywords value in the DNN Site Settings page for your website.
|
append |
Optional. Valid Values: true or false (the default value). If true,
XMod will append the tag's inner text to the existing page's list of keywords..
If false, XMod will replace the page's keywords with the tag's inner contents. |
Note, for this tag to function correctly, you should set a default Keywords value in the DNN Site Settings page for your website.
|
append |
Optional. Valid Values: true or false (the default value). If true, XMod will append the tag's inner text to the existing page's description. If false, XMod will replace the page's description with the tag's inner contents. |
<xmod:metatags>
<title append="true"> - Story Details</title>
<keywords><xmod:field name="StoryTitle"/></keywords>
<description><xmod:field name="StorySynopsis"/></description>
</xmod:metatags>
In IE, for a site called "Newshound.com" this would display as
"Newshound.com - Story Details - Microsoft Internet Explorer"
The keywords would be replaced by the value in the field "StoryTitle" and the description would be replaced by the value of the "StorySynopsis" field.
<xmod:metatags>
<title append="true">{XMOD_PortalName}::Story Details</title>
</xmod:metatags>
In IE, on the default DNN installation, this would display as:
"DotNetNuke Default Portal::Story Details - Microsoft Internet Explorer"
The default keywords and description associated with the page would not be modified.