Login  Register

Re: Duplicate title tags and meta descriptions

Posted by Harvey on Oct 21, 2011; 12:59am
URL: https://support.nabble.com/Duplicate-title-tags-and-meta-descriptions-tp6759630p6915399.html

I think I removed the extra code from the newspaper. The error is gone anyway.

For the forum though I get the opposite error. When I change the </else> to </then> THEN I get an error. I have a feeling it is becuase in this case I want to KEEP the second part of the code and remove the first?  Do I have to change value2="forum" ?


<override_macro name="default_app_title_contents" requires="node">
  <n.if.equal value1="[n.root_node.type/]" value2="news">
    <then>
      <n.if.is_root>
        <then>
          NY Ski Magazine | The Mountains Less Traveled | Harvey Road
        </then>
        <else>
          <n.if.is_post>
            <then>
              <n.subject/> | NY Ski Magazine
            </then>
            <else>
              NY Ski Magazine | <n.subject/> | Harvey Road
            </else>
          </n.if.is_post>
        </else>
      </n.if.is_root>
    </then>
    <else>
      <n.if.is_root>
        <then>
          NY Ski Forum | Trip Reports, Ski Conditions, Snow Sports | Harvey Road
        </then>
        <else>
          <n.if.is_post>
            <then>
              <n.subject/> | NY Ski Forum
            </then>
            <else>
              NY Ski Forum | <n.subject/> | Harvey Road
            </else>
          </n.if.is_post>
        </else>
      </n.if.is_root>
    </else>
  </n.if.equal>
</override_macro>
HTTPS Please!