ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

exlude elements from „repeating“ in entries channel

September 23, 2012 2:16pm

Subscribe [2]
  • #1 / Sep 23, 2012 2:16pm

    hi there,

    short question: is it possible to exclude some tags or elements (like a closing /div for instance) from this kind of channel entries listings like this one?

    {exp:channel:entries channel="projekt" orderby="random" search:auf_der_startseite_zeigen="Auf der Startseite zeigen"}
    <div class="headline"><h1><a href="http://">{title}</a></h1></div><!-- #headline-->
    <div class="subhead"><h2>{related_entries id="kunde"}{title}, {kunde_seit_von} {kunde_bis}{/related_entries}</h2><p></div><!-- #subhead--><br />
    <div id="example"><br />
    EXAMPLE<br />
    </div><br />
    {/exp:channel:entries}

    the “example-div” right before the closing “{/exp:channel:entries}” should not be repeated like the headline- or subhead-divs above. how can i achieve this?

    or is it possible to close the listing and sort of “reopen” it after i called this example-div?


    thank you for your help!
    regards,
    matthias

     

  • #2 / Sep 24, 2012 5:03pm

    Kevin Smith

    4784 posts

    Hi Matthias,

    I’m sure it’s not as simple as this, but it sounds like you just need to put the example div outside your Channel Entries tag. Is there a reason you need it inside the tag but only displayed once?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases