All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Want to parse an embedded title

RobPost 30 Aug 2012 10:14 question, complete

Hi,

I want to parse a title as an embedded title with Low Variables.

My current situation is:
{embed="_includes/_htmlhead" title="Sitemap {low_settings_title}"}

Changed it to:
{low_system_htmlhead title="Sitemap}

In the Low Variables template it refers to:
{embed:title} {structure:page:title} {low_settings_title}

But it'll break the template.
Early parsing is on for this Low Variable template.

Replies

  1. Low 30 Aug 2012 10:22

    Hi Rob,

    Not entirely sure what you're trying to do, but it looks like you're replacing an embed with a LV.

    First of all, this will never work:

    {low_system_htmlhead title="Sitemap}


    You're missing a quote there and, more importantly, variable syntax can never have parameters. You'll need to use the tag syntax:

    {exp:low_variables:single var="low_system_htmlhead"}


    If you want to pass on variables on the fly there, use the preparse parameter:

    {exp:low_variables:single var="low_system_htmlhead" preparse:my_title="foo"}


    ...which will make the variable {my_title} display as "foo" (without quotes) in the variable data.

    If you're using the tag syntax, having early parsing enabled or disabled is not important.

  2. RobPost 30 Aug 2012 10:50

    Awesome, thanx