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 variable?

May 13, 2014 12:40pm

Subscribe [1]
  • #1 / May 13, 2014 12:40pm

    Warby

    20 posts

    I have 3 featured entries on my home page, which are displayed by assigning them to a category ‘featured’

    If there is 2 or less entries assigned to the featured category, I want other entries from the same channel to be randomly displayed, so some sort of variable like:

    if category ‘featured’ has 2 assigned, display 1 non-featured random entry
    if category ‘featured’ has 1 assigned, display 2 non-featured random entry
    if category ‘featured’ has 0 assigned, display 3 non-featured random entry

    Any help appreciated : )

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases