I'm trying to use the switch variable with Matrix with no success - nothing is output. This is on the latest Matrix and EE 2.5.5:


    <div class="panel {switch=panel-n1|panel-n2|panel-n3|panel-n4}">


        <div class="editor-content">
            panel_text here

        {if structure_page OR url}
            <a href="{if structure_page}{structure_page}{if:else}{url}{/if}" class="cta" title="{headline}">{cta}</a>   



Any suggestions where I'm going wrong?


1 Answer 1


Argh, sorry. Was missing quotes:



  • 1
    Please feel free to accept your own answer, so the issue is marked as resolved or not open. Jan 9, 2013 at 17:05

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.