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.

Only display entries with a particular related custom field

November 14, 2011 7:26am

Subscribe [1]
  • #1 / Nov 14, 2011 7:26am

    warrenkeith

    29 posts

    I might be explaining this in a more complicated way than necessary, but here goes:

    I have a single channel to store news for all branches of a company. I’m assigning people to a news article via a related field (a separate channel of people).

    On this branch’s page I now want to output just their articles, but I can’t work out the syntax.

    I was initially thinking of the search parameter for entries but it won’t search a related field.

    I presume that this is kind of thing that related entries are for, if I could work out the right parameter…?

    Any advice is appreciated!

  • #2 / Nov 14, 2011 7:33am

    warrenkeith

    29 posts

    ... and I work it out myself! Asking for help really frames the problem.

    The solution is using the {reverse_related_entries} tag inside the entries tag for the branch.

    EE never ceases to amaze.

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

ExpressionEngine News!

#eecms, #events, #releases