Search code examples
expressionengine

What does this expressionengine template code mean?


    {if exclude-locales}
        {exp:cookie_plus:get name="cklocale" parse="inward"}
            {exclude-locales}
                {if "{option_name}" != "{cookie}"}
                    <p>
   content goes here
                    </p>
                {/if} 
            {/exclude-locales}
        {/exp:cookie_plus:get}
   {if:else}...

I've been told that 'exclude-locales' is the name of a custom field. I'm looking to understand what the condition {if exclude-locales} actually means and also what 'parse="inward"' does?

exclude-locales is a gypsy field of type FF Multi Select


Solution

  • what the condition {if exclude-locales} actually means

    exclude-locales must be a boolean/bool type of data type.

    {if exclude-locales} means if the value of "exclude-locales" is true, then go inside the if part of the loop i.e. execute

    {exp:cookie_plus:get name="cklocale" parse="inward"}

    code.