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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.