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.

Entries are not being filtered by URL

September 17, 2009 3:47pm

Subscribe [1]
  • #1 / Sep 17, 2009 3:47pm

    mschoening

    71 posts

    Hi,
    it has been quite a while for me and I don’t know if I remember correctly but with the weblog:entries tag didn’t the entries get filtered if the last URL segment included a URL title?

    I am trying to do the following:

    {embed="includes/_header"}
        
        {exp:weblog:entries weblog="blog"}
            <div class="entry">
                <h2><a href="http://{title_permalink=">{title}</a></h2>
    <p>        <br />
                </p><h3>written by {author} on {entry_date format="%F %n%S %Y"}</h3>
    <p>            <br />
                {if segment_2 == ''}<br />
                    {summary}<br />
                {if:else}<br />
                    {body}<br />
                {/if}<br />
            </div><!-- end entry --><br />
        {/exp:weblog:entries}<br />
        <br />
    {embed="includes/_footer"}

    So if I have the url http://domain.com/index.php/blog/ it will show all entries and only the summary. If I visit http://domain.com/index.php/blog/url_title_of_entry it should then only show one entry and the body instead of the summary. It is picking up the summary/body switch correctly however on both URLs all the entries are shown. I haven’t set dynamic to off so I am quite lost :D!

    Thanks,
    Max

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

ExpressionEngine News!

#eecms, #events, #releases