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.

Monthly archive grouped by category

March 06, 2008 4:32pm

Subscribe [3]
  • #1 / Mar 06, 2008 4:32pm

    Hi all,
    I know that this is possible with just plain old php, however I like to do stuff using pure ee whenever possible?

    I need an archive page grouped by date, then in that grouped by category. See image here.

    I only seem to be able to use standard weblog entries with date_heading or just use category_archive but not both together to create fused luvleyness.

    Is this possible with just pure ee?

    Cheers,
    Steve

  • #2 / Mar 06, 2008 6:34pm

    tbritton

    714 posts

    There are actually three sorts going on here, a date sort inside a category sort inside a date sort.

    I have done similar in the past by embedding a template containing the first date sort inside a category sort (its own weblog:entries template) into a template with the larger date sort (a category_archives template)

    embedList template:

    {exp:weblog:entries sortby="date"}
    {categories}
    {category_name}
    {/categories}
    <a href="http://{permalink=template_group/template}">{title}</a>
    {/exp:weblog:entries}

    Then embed that into the date-sorting loop.

    untested musings, but late for work, gotta go! Will check back in later and try some stuff out.

    Terry

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

ExpressionEngine News!

#eecms, #events, #releases