1

I looked around and could not find how to have different types of Wygwam and Asset fields inside of Content Elements.

For example I want to be able to have two different types of Wygwam fields. I assumed my template would look like this:

{wygwam}
    {if element_name == "Address Content"}
        <div class="address-content">{value}</div>
    {if:else}
        {value}
    {/if}
{/wygwam}

This does not seem to work. Is this even possible at this point in time? Assets is giving me the same issue.

Any clarification would be awesome!

Thanks in advanced!

John

2

You have to wrap the element_name in quotes:

{if "{element_name}" == "Address Content"}
| improve this answer | |
  • Thanks! No idea where I missed that in the documentation. – johnHoysa Oct 31 '13 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.