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.

Category only content

November 20, 2009 3:56am

Subscribe [1]
  • #1 / Nov 20, 2009 3:56am

    Nora

    41 posts

    I’ve always been using special category only templates to display category content but I’m working on switching over to having category only content (category names & descriptions) show on the templates index which includes all weblog entries.

    So far I’ve come up with:

    {if segment_2 != ""}{categories}<h1>{category_name}</h1>{/categories}{/if}

    It works but I’m not sure if using segments is going to lead to problems later on. Is this a good way to do it or are there better methods to target categories alone? Thanks in advance. 😊

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

ExpressionEngine News!

#eecms, #events, #releases