Any idea why this conditional is not working? If I remove 'if' the code renders desired result.

{exp:channel:entries channel="festivals" url_title="festival-2013" limit="1"}
        {exp:playa:children channel="films" var_prefix="films"}

        {if '{films:film_language}' != ""}
            {films:exp:playa:children channel="languages" var_prefix="filmlanguage" backspace="1"} 


1 Answer 1


The single tag {films:film_language} will never return empty. Try it by itself in your template and see what you get. A 0, I think (don't remember).

If there's nothing for the Playa field to parse, if it's empty, then it won't show, so just do this:

        {exp:playa:children channel="languages" var_prefix="filmlanguage" backspace="1"} 

Does that solve it for you?

  • Still no go. Now it looks like it doesn't process tags inside {films:film_language}. I get this rendered: {filmlanguage:title}, {filmlanguage:title}, {/exp:playa:children}
    – SoHo
    Commented Aug 26, 2013 at 14:26
  • Can you clarify what you channel/channel field set up is? Commented Aug 26, 2013 at 17:56

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.