0

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">
        {press_releases}
        <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">
                </a>
        </div>
        {switch='|||</div><div class="row">'}
        {/press_releases}     
        </div>        
....
{/exp:channel:entries}

any clue what is missing?

Thanks

1 Answer 1

3

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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.