Announcement

Collapse
No announcement yet.

coding errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    coding errors

    Hi,

    I am using the same template for both brochure and catalog. Consequently when I do an update I get coding errors on my metadescription and metakeywords.

    I can not seem to find them in the variables to update the pages they run with.

    Any idea how I update to get rid of this annoying coding error?

    Thanks,
    Paul.

    #2
    Try using teh following code - it should work on both pages.
    Code:
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22GlbMetaKeywords%22%20%2f%3e%20%21%3d%20%22%22%29" >
    <meta name="keywords" content="<actinic:variable name="GlbMetaKeywords" />"/>
    </actinic:block>
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22GlbMetaDescription%22%20%2f%3e%20%21%3d%20%22%22%29" >
    <meta name="description" content="<actinic:variable name="GlbMetaDescription" />"/>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaKeywords%22%20%2f%3e%20%21%3d%20%22%22">
    <meta name="keywords" content="<actinic:variable name="MetaKeywords" />"/>
    </actinic:block>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaDescription%22%20%2f%3e%20%21%3d%20%22%22">
    <meta name="description" content="<actinic:variable name="MetaDescription" />"/>
    </actinic:block>
    </actinic:block>
    (FYI It's the code that's inserted in the the <head> section of a design by the Dreamweaver interface)

    Comment

    Working...
    X