Announcement

Collapse
No announcement yet.

HEAD Tag Content, Meta Tags and Tokens?

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

    HEAD Tag Content, Meta Tags and Tokens?

    Is there a way to create a dynamic META tag in the HEAD Tag content using something like:

    <meta name="keywords" content="some custom product field token">
    <meta name="description" content="product description token">
    Heather Gordon
    Meridian Design

    #2
    Originally posted by HGordon
    Is there a way to create a dynamic META tag in the HEAD Tag content using something like:

    <meta name="keywords" content="some custom product field token">
    <meta name="description" content="product description token">
    For products, you could do

    Code:
    <mvt:if expr="NOT ISNULL 
    l.settings:product:customfield_values:customfields:meta_keywords">
    <meta name="keywords" 
    content="&mvt:product:customfield_values:customfields:meta_keywords;">
    </mvt:if>
    but categories don't have custom fields. A better solution is to use either latu or ads meta tags module that will automatically insert your category header and product descriptions as the meta description and keyword fields while stripping out html, truncating to a specific character length, etc. hth

    Jason
    Jason Henderson - JMH Web Services
    Miva Merchant Marketing Mastermind Group

    SEO & Marketing for Miva Merchant
    Miva Merchant Modules Comparison Directory
    Miva Merchant Tutorials
    Working with Miva Merchant since 1999 including search engine optimization and marketing specifically for Miva Merchant store owners.

    Comment


      #3
      I expanded on that in my Global Header Tags so that it displays a generic tag for pages without the Meta Tag present (Storefront etc...).

      Code:
      <mvt:if expr="ISNULL l.settings:product:customfield_values:customfields:meta_keywords">
      <META NAME="Keywords" CONTENT="my tags, etc, etc, etc">
      </mvt:if>
      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:meta_keywords">
      <meta name="keywords" 
      content="&mvt:product:customfield_values:customfields:meta_keywords;">
      </mvt:if>
      Terral Artis
      http://cellularmountain.com
      Over 4500 Cellular and Wireless Accessories
      including Blackberry and Treo Gear

      Comment


        #4
        If you reformat the html in Miva 5 yourself, could format the html for the category and product display pages to look like this:

        <title>&mvt:category:name;</title>
        <meta name="description" content="&mvt:product:descrip;" />
        <meta name="keywords" content="&mvt:product:name;" />

        That will at least set it up so you can pick and choose what the Title, Meta Desc. and Meta Keywords tags will display for each category and you can do the same thing for the product pages.

        Not sure if that was what you meant, but we do that.
        Ted Hust
        AarcMediaGroup.com

        Celebrating 13 Years of Outstanding Service & Support
        Miva Merchant Design

        Comment


          #5
          Just saw that it automatically overwrote the code there and put the smiley face in, but that is supposed to be the code that draws up the description and the product name.
          Ted Hust
          AarcMediaGroup.com

          Celebrating 13 Years of Outstanding Service & Support
          Miva Merchant Design

          Comment


            #6
            Use the # icon in the edit bar to surround your code so that doesnt happen.

            Code:
            <title>&mvt:category:name;</title>
            <meta name="description" content="&mvtroduct:descrip;" />
            <meta name="keywords" content="&mvtroduct:name;" />

            Originally posted by aarcmedia
            Just saw that it automatically overwrote the code there and put the smiley face in, but that is supposed to be the code that draws up the description and the product name.

            Comment

            Working...
            X