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.

Changing text based on number of categories an entry has

November 17, 2007 4:11am

Subscribe [1]
  • #1 / Nov 17, 2007 4:11am

    Erin Dalzell

    790 posts

    I would like to use the text, ‘Post by author in cat1, cat2, cat2, etc’ if there ARE categories for that entry and the text ‘Posted by author’ if there are no categories.

    Would I need to use the category count query to accomplish this? If so, how do I use the {total_results} variable? Do I need to call it from within the query tag? The docs aren’t clear on this.

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases