So far I was able to create rows with EE and a Grida data based on a solution from that article, but new template is not able to create rows (code below)

{exp:channel:entries channel="media" url_title="{segment_2}" limit="1" dynamic="no"}    
<div class="row">
        <div class="col-md-2 col-sm-6">
                <a href="{site_url}pdfs/press/{press_releases:pdf}" target="_blank">
                    <img src="{press_releases:cover}" alt="{press_releases:title}" class="img-responsive">
        {switch='|||</div><div class="row">'}

any clue what is missing?


1 Answer 1


If you're wanting the switch tag to apply to the grid rows, then you need to prefix it with your grid field name (docs):

{press_releases:switch='|||</div><div class="row">'}

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.