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:

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

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!


1 Answer 1


You have to wrap the element_name in quotes:

{if "{element_name}" == "Address Content"}
  • Thanks! No idea where I missed that in the documentation.
    – johnHoysa
    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.