We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49300
    • 19 Posts
    Hi

    I'm creating a list of project items on a page and some of those projects are multilingual. I want to show that on the thumbnail.

    Now, on my chunk, I will call another chunk that will display those languages.

    my TV ([[*IsMultilingual]]) Input Options is "Radio Options" and have values:

    Yes||No


    So i have this on my *ProjectItem chunk:

    [[ [[*IsMultilingual:is=`Yes`:then=`[[$thischunk]]`]] ]]

    But it won't show the chunk.


    [[+IsMultilingual:is]] = displays "Yes" but testing it won't work.

    Also tried this

    [[[[*IsMultilingual:=`Yes`:then=`[[$thischunk]]`]]]]
      • 5430
      • 247 Posts
      Using double brackets on the outside means you don't need brackets on the inner chunk call so [[[[*IsMultilingual:is=`Yes`:then=`[[$thischunk]]`]]]] should be [[[[*IsMultilingual:is=`Yes`:then=`$thischunk`]]]].

      The inner brackets evaluate the if clause and return the string $thischunk, which is then evaluated as a chunk by the outer brackets.