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.

Filter Entries by Date from Template

December 13, 2010 6:09pm

Subscribe [3]
  • #1 / Dec 13, 2010 6:09pm

    Goal: Dynamically filter entries by date from a template, via date picker, manual entry, etc.

    ? : How to re-send values for ‘day’ ‘month’ ‘year’ parameters back to EE, and return new results? 

    Any help pointing me in the right direction is appreciated. Thanks.

  • #2 / Dec 14, 2010 8:14am

    Sue Crocker

    26054 posts

    Hi, P. Colin Manikoth.

    It depends on what you want. For instance, in the default templates that ship with EE1.x you’ll find the following:

    <h2 class="sidetitle">Monthly Archives</h2>
    <ul>
    {exp:weblog:month_links weblog="{my_weblog}"}
    <li><a href="http://{path={my_template_group}/index}">{month} {year}</a></li>
    {/exp:weblog:month_links}
    <li><a href="http://{path={my_template_group}/archives}">Complete Archives</a></li>
    <li><a href="http://{path={my_template_group}/categories}">Category Archives</a></li>
    </ul>

    You would have defined {my_weblog} and {my_template_group} previously.

    Does that help?

  • #3 / Dec 14, 2010 1:14pm

    The solution I was looking for involved Dynamic Parameters. I was unaware they existed - very useful. See Ryan Irelan’s article:

    http://eeinsider.com/articles/filtering-content-with-dynamic-parameters/

    Thanks Sue.

  • #4 / Dec 14, 2010 5:45pm

    Ingmar

    29245 posts

    Very glad to see that works for you. Post again as needed, please.

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

ExpressionEngine News!

#eecms, #events, #releases