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 displayed by date

September 02, 2010 1:32pm

Subscribe [4]
  • #1 / Sep 02, 2010 1:32pm

    scottb

    348 posts

    I have a template that displays entries by weblog. I’m also displaying the entry date of each entry. I would like to make the entry date a link to a template that shows all entries for that date. Here is how I’m doing it at the moment:

    <a href="http://{path={weblogs}/edition/{entry_date}}">{entry_date format="%m/%d/%y - %g:%i %a"}</a>

    The resulting template named “edition” does display entries for that date. But the pagination at the bottom doesn’t work correctly. The link for Page 2 shows P10 in the url. In addition, when you click on the link, it simply reloads the current page.

    Any suggestions?

  • #2 / Sep 02, 2010 5:13pm

    Ingmar

    29245 posts

    The link for Page 2 shows P10 in the url.

    Yes, that would be expected with 10 entries per page.

    In addition, when you click on the link, it simply reloads the current page.

    Can you give us a link? Also, what version and build are you using?

  • #3 / Sep 03, 2010 10:57am

    scottb

    348 posts

    I should be a little more clear about the first point. When you click on the link for Page 2, which has the P10 at the end of the path, you reload the current page. The path then shows /P10/P10/ and so forth.

    The version is 1.6.9 and the build is 20100415. Here is the link:

    http://chesterfield.ehclients.com/index.php/news/edition/1281504609/

  • #4 / Sep 03, 2010 3:55pm

    Sue Crocker

    26054 posts

    What do you have for your pagination code?

  • #5 / Sep 03, 2010 4:25pm

    scottb

    348 posts

    {paginate}
    Page {current_page} of {total_pages} pages {pagination_links}
    {/paginate}

    But nothing in exp:weblog:entries.

  • #6 / Sep 03, 2010 6:33pm

    Sue Crocker

    26054 posts

    Your pagination code should be inside your exp:weblog:entries loop.

  • #7 / Sep 07, 2010 11:29am

    scottb

    348 posts

    This is the complete code without css:

    {exp:weblog:entries weblog="{weblogs}" limit="10" start_on="{entry_date"} dynamic="off"}
    
    <h4><a href="http://{title_permalink={weblogs}/article}">{title}</a></h4>
    
    <p>{entry_date format="%m/%d/%y - %g:%i %a"}<br />
    {categories}<a href="http://{path={weblogs}/categories/}">{category_description}</a>{/categories}</p>
    
    <p>{summary}</p>
    
    <p>{paginate}<br />
    Page {current_page} of {total_pages} pages {pagination_links}<br />
    {/paginate}</p>
    
    <p>{/exp:weblog:entries}

  • #8 / Sep 07, 2010 4:35pm

    Brandon Jones

    5500 posts

    Hi scottb,

    Can you please perform an update to build 20100805? I see some pagination-related fixes there. Keep us posted.

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

ExpressionEngine News!

#eecms, #events, #releases