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.

Show one date for all entries posted on same date

April 09, 2009 7:20am

Subscribe [2]
  • #1 / Apr 09, 2009 7:20am

    tomazbojc

    32 posts

    I have a template that shows all entries from Monday to Sunday. There will be more than one event per day and what I would like to achieve is that they would all be posted under one date.

    Now I have let’s say two events on 9th and I would like to display one date for both entries. I have attached a picture of what I want and below is my code. Any kind of help would be appreciated.

    {exp:weblog:entries weblog="koledar_predstav" dynamic="off" disable="trackbacks|member_data|categories|pagination" display_by="week" show_current_week="yes" show_future_entries="yes" start_day="Monday" status="open|razprodano|odpade"}
        <div class="predstava_seznam">
            <dl>
                <dt class="dnevi_mesec">{entry_date format="%F"}</dt>
                <dd class="dnevi_dan">{entry_date format="%j"}</dd>
                <dd class="dnevi_ime">{entry_date format="%D"}</dd>
            </dl>
            <ul class="opis_predstave">
                <li>
                    <h3><a href="http://{title_permalink=">{ura}, {title}</a></h3>
    <p>                <strong>{avtor}</strong></p>
    
    <p>                {related_entries id="link_predstava"}<br />
                        {starost}, {cas_predstave}<br />
    {prizorisce}</p>
    
    <p>                {/related_entries}<br />
                    <a href="http://{homepage}/predstave/po_predstavah/{related_entries">Povovitve</a></b><br />
                    {if status == "razprodano"}slike/razprodano.gif{/if}<br />
                </li><br />
            </ul><br />
            <div class="clear"></div><br />
        </div><!--predstava_seznam--><br />
    {/exp:weblog:entries}

  • #2 / Apr 09, 2009 8:08am

    silenz

    1651 posts

    You are probably looking for the date_heading variable-pair.

  • #3 / Apr 09, 2009 8:18am

    tomazbojc

    32 posts

    I gues I was looking for that, yes. Thank you! 😊

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

ExpressionEngine News!

#eecms, #events, #releases