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.

UNrelated Categories

April 05, 2012 9:25am

Subscribe [1]
  • #1 / Apr 05, 2012 9:25am

    entrepreneurhip

    1 posts

    I have a unique requirement for related entries and am at a loss for how to implement the corresponding logic.

    We have two category groups: SECTOR and GEOGRAPHY. The requirement is to list “related” entries where SECTOR matches the current entry but GEOGRAPHY does NOT.

    i.e. CurrentEntry:Sector = RelatedEntries:Sector AND CurrentEntry.Geography != RelatedEntries:Geography

    As I’m new to EE, I’ve discovered how to setup basic related entries but am not sure how to incorporate this additional logic. Any help would be greatly appreciated!

    {exp:channel:entries channel="blog" limit="4" related_categories_mode="yes" custom_fields="yes"}
         <h4>{title}</h4>
    <p>{/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases