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 filtered by dates in URL

July 21, 2011 1:53pm

Subscribe [2]
  • #1 / Jul 21, 2011 1:53pm

    stevenkovar

    11 posts

    Hello,

    I’m ran into a strange situation for which I don’t see any info in the docs. I have a url structure like this:

    http://mysite.com/mychannel/category/music/2011/07/22

    I have some test entries with entry dates and expiration dates set.

    When using the standard embed without “starts_on” or “stop_before” parameters, it seems EE is automatically filtering out the entries by the date in the URL. It was my understanding that something like this would only work with the Archives tag, not with the channel module tag. Here’s code I’m using:

    {exp:channel:entries channel="event" show_future_entries="yes" show_expired_entries="no"}
    
    {title}
    
    {/exp:channel:entries}

    Each date url is pulling out entries that start on the date in the URL, like what the Archives module would do.

    I don’t see anything in the docs that says this is the intended behavior for the channel module… but I could be wrong. Is this a feature, or a bug?

    I’ve tried disabling extensions.


    Thanks in advance for your help. 

     

    Steven

    2.2.1 - Build: date 20110705

  • #2 / Jul 21, 2011 4:08pm

    That’s default behavior for the exp:channel:entries tag as well.  See:

    http://www.jamessmith.co.uk/images/ExpressionEngine_url_schematic.png

  • #3 / Jul 21, 2011 4:41pm

    stevenkovar

    11 posts

    Thank you Nick, that’s a very helpful resource.

  • #4 / Jul 22, 2011 6:14am

    John Henry Donovan

    12339 posts

    Steven,

    Note, you can disable the Channel ENtries Tag being affected by the URL by using the parameter dynamic=“no” if you wish to override anything

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

ExpressionEngine News!

#eecms, #events, #releases