Re: Duplicate title tags and meta descriptions
Posted by
Peter <Nabble> on
Nov 04, 2011; 12:49am
URL: https://support.nabble.com/Duplicate-title-tags-and-meta-descriptions-tp6759630p6961323.html
Ok, lets revisit his proposal:
<override_macro name="topic_title" dot_parameter="ending">
<title><n.compress.>
<n.page_node.>
<n.if.has_property name="page_title">
<then.get_property name="page_title"/>
<else>
NY Ski Forum | <n.subject/>
<n.hide_if_equals. value1="[n.topic_page_number/]" value2="1">
: Page <n.topic_page_number/>
</n.hide_if_equals.>
| Harvey Road
</else>
</n.if.has_property>
</n.page_node.>
</n.compress.></title>
</override_macro>
The most important is:
NY Ski Forum | <n.subject/> <- will display the subject
<n.hide_if_equals. value1="[n.topic_page_number/]" value2="1"> <-this if hides the content if the page number is 1
: Page <n.topic_page_number/> <- ": Page X" will display the page number but since it is inside the if, it will only be displayed if it's not "1"
</n.hide_if_equals.>
| Harvey Road <- the end
Nabble staff. We never ask for passwords.