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.

Index of entries, grouped under categories ?

May 19, 2009 7:32pm

Subscribe [1]
  • #1 / May 19, 2009 7:32pm

    The weblog:entries looper is not working at all here ...
    Am I missing something here?

    {exp:weblog:categories weblog="books" style="nested" class="category_index"}
    
    <h3>{category_name} [{category_id}]</h3>
    <p>{if category_description !=""}{category_description}{/if}</p>
    
    <p><ul class="index_entries"></p>
    
    <p>{exp:weblog:entries weblog="books" category="{category_id}" }<br />
    <li>{title} [{entry_id}]</li><br />
    {/exp:weblog:entries}</p>
    
    <p></ul><br />
    {/exp:weblog:categories}

    TIA,
    Erik

  • #2 / May 19, 2009 8:30pm

    We have a custom status in use: Published
    I was not selecting with this status (*floppyfishhands*).

    The following does work as expected.

    {exp:weblog:categories weblog="books" style="nested" class="category_index" }
    
    <h3>{category_name}</h3>
    <p>{if category_description !=""}{category_description}{/if}</p>
    
    <p><ul class="index_entries"><br />
    {exp:weblog:entries weblog="books" category="{category_id}" status="Published"}<br />
    <li><a href="http://{path=books/review}/{url_title}">{title}</a></li><br />
    {/exp:weblog:entries}<br />
    </ul></p>
    
    <p>{/exp:weblog:categories}

  • #3 / May 19, 2009 9:56pm

    Lisa Wess

    20502 posts

    VancouverPL - is there some reason you’re using that type of nesting when there is a much leaner option available?

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

ExpressionEngine News!

#eecms, #events, #releases