SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make auto

    i have some pages without meta tag description.if i put meta tag description at head section that cause duplicate to all pages and that will not unique again.

    so i want to make meta tag description to fill pages without meta tag.and leave pages already have meta tag.

    so i try this code. ( note: iam newbie dont blame me)
    {* Custom META tags *}
    {if $smarty.const.ENABLE_META_TAGS}
    {if !empty($MetaDescription)}
    <meta name="description" content="this is test meta tag" />
    {/if}
    {/if}
    and Failed.
    can someone help me to make like i want??thanks

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,410
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    So are you using the smarty template system?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah...
    my head using extension head.tpl

    is there any other way??
    thanks

  4. #4
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,410
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    Sorry I do not use smarty but would have thought it would be built into the system.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •