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

1 Answer 1

2

You have to wrap the element_name in quotes:

{if "{element_name}" == "Address Content"}
1
  • Thanks! No idea where I missed that in the documentation.
    – johnHoysa
    Commented Oct 31, 2013 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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