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.

Display content of channel entries by parent categories only.

November 12, 2012 1:14pm

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

    Mobster

    64 posts

    I’m struggling wrapping my head around categories in EE.  (Sorry… really struggling) 


    Is this possible? I’m dreaming of using categories to filter parent entries to build a main category page)  Hack style i guess.

    {exp:channel:entries channel="instruments" limit="9"  paginate="bottom" status="open|featured"}
    
    (my category structure)
    
    Stringed  <--- Display content within this parent only
    --Guitars
    --Violins
    
    Percussion  <--- Display content within this parent only only
    --Drums
    --Cymbals
    
    
    {/exp:channel:entries}

     

  • #2 / Nov 12, 2012 2:19pm

    Mobster

    64 posts

    Why can’t I get an answer to this?  Is it not possible?

  • #3 / Nov 14, 2012 1:29pm

    Dan Decker

    7338 posts

    Hi Denny,

    You may be more interested in the Channel Categories tag:

    {exp:channel:categories channel="instruments" parent_only="yes"}
        <a href="http://{path=channel/index}">{category_name}</a>
        {if category_description}{category_description}{/if}
    {/exp:channel:categories}

    That depends on what kind of entry information you need though. Can you give me some insight on that?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases