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.

Best method to display entires by categories

November 14, 2012 3:55pm

Subscribe [1]
  • #1 / Nov 14, 2012 3:55pm

    ianryde

    112 posts

    Hi all,

    Has anyone suggest the best method to list entries by category.

    I need to list entries by category (in this case Documents channel} - For example:

    DOCUMENT CATEGORY 1 TITLE

    Entry 1 - Download
    Entry 2 - Download
    Entry 3 - Download
    Entry 4 - Download

    DOCUMENT CATEGORY 1 TITLE

    Entry 1 - Download
    Entry 2 - Download
    Entry 3 - Download
    Entry 4 - Download

    DOCUMENT CATEGORY 1 TITLE

    Entry 1 - Download
    Entry 2 - Download
    Entry 3 - Download
    Entry 4 - Download

    And so on and so on.

    Any help greatly appreciated.

    Thanks,
    Ian

  • #2 / Nov 16, 2012 11:45am

    Dan Decker

    7338 posts

    Hi Ian,

    I believe you would enjoy the Category Archive tag:

    {exp:channel:category_archive channel="default_site" style="linear"}
        {categories}
            <h3>{category_name}</h3>
    <p>        {if category_description}<br />
                {category_description}<br />
            {/if}<br />
        {/categories}<br />
        {entry_titles}<br />
            <a href="http://{path=SITE_INDEX}">{title}</a></p>
    
    <p>    {/entry_titles}<br />
    {/exp:channel:category_archive}

    Cheers!

  • #3 / Nov 16, 2012 11:47am

    ianryde

    112 posts

    Hazzarrr!

    Thankyou so much.

    Ian

  • #4 / Nov 20, 2012 4:44pm

    Dan Decker

    7338 posts

    Excellent!

    If you need anything else, please let me know!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases