We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Syntax Error

Development and Programming

Geoff Towle's avatar
Geoff Towle
330 posts
16 years ago
Geoff Towle's avatar Geoff Towle

This is my second BM install. I’m getting this syntax error and can’t figure out why:

Error

The following tag has a syntax error:

{exp:lg_better_meta_pi:template}

Please correct the syntax in your template.

And here is the code in the template, which I am embedding in the head of each page:

{if segment_1 != "" AND segment_2 == ""}

  {exp:lg_better_meta_pi:template 
    entry_id="{embed:entry_id}"
    weblog_id="{embed:weblog_id}"
    url_title="{segment_1}"
    title="{embed:title}"
    title_suffix="{embed:title_suffix}"
    title_prefix="{embed:title_prefix}"
    hide_site_title="{embed:hide_site_title}"
    description="{embed:description}"
    keywords="{embed:keywords}"
    author="{embed:author}"
    publisher="{embed:publisher}"
    rights="{embed:rights}"
    date_created="{embed:date_created}"
    date_modified="{embed:date_modified}"
    date_valid="{embed:date_valid}"
    identifier="{embed:identifier}"
    robots_index="{embed:robots_index}"
    robots_follow="{embed:robots_follow}"
    robots_archive="{embed:robots_archive}"
  }

{if:elseif segment_1 == ""}

  {exp:lg_better_meta_pi:template title="sample title text" hide_site_title = "y"}

{if:else}

  {exp:lg_better_meta_pi:template 
    url_title="{segment_3}"
    entry_id="{embed:entry_id}"
    weblog_id="{embed:weblog_id}"
    url_title="{segment_3}"
    title="{embed:title}"
    title_suffix="{embed:title_suffix}"
    title_prefix="{embed:title_prefix}"
    hide_site_title="{embed:hide_site_title}"
    description="{embed:description}"
    keywords="{embed:keywords}"
    author="{embed:author}"
    publisher="{embed:publisher}"
    rights="{embed:rights}"
    date_created="{embed:date_created}"
    date_modified="{embed:date_modified}"
    date_valid="{embed:date_valid}"
    identifier="{embed:identifier}"
    robots_index="{embed:robots_index}"
    robots_follow="{embed:robots_follow}"
    robots_archive="{embed:robots_archive}"
  }

{/if}

Any help would be appreciated. Thanks.

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

First thing I’d check is whether pi.lg_better_meta_pi.php is actually present in your plugins-folder.

       
Geoff Towle's avatar
Geoff Towle
330 posts
16 years ago
Geoff Towle's avatar Geoff Towle

DOH!

That was it. Thanks…

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

I don’t know whether that error message appears in any other circumstances but if not it could be more clear ;-)

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.