I have a test tag where it's pulling data from a Native Relationship here:


Here's the code under the "Data" header:

{exp:channel:entries channel="patterns" limit="1" status="Open|Closed"}
    <p>designer_label: {designer_label}{designer_label:entry_id}{/designer_label}</p>
    <p>design_label2: {design_label2 status="Open|Closed|Draft|Edited|Proofread"}{design_label2:title}{/design_label2}</p>
    <p>pattern_groups2: {pattern_groups2 backspace="1"}{pattern_groups2:entry_id},{/pattern_groups2}</p>
    <p>pattern_company2: {pattern_company2}{pattern_company2:entry_id}{/pattern_company2}</p>

The fields {designer_label} and {pattern_groups2} are pulling, while {design_label2} does not. I've added all statuses to the {design_label2} tag, but does not seem to be working. Am I missing something?

  • Does {design_label2:entry_id} print out?
    – Anna_MediaGirl
    Nov 5 '13 at 3:51
  • Hi Anna, regretfully no - bit puzzled on this one. Nov 5 '13 at 7:34
  • 1
    What does your debugging output show? Is the query running and just returning no results?
    – Anna_MediaGirl
    Nov 5 '13 at 14:39
  • Is it possible that the entries that {design_label2} would be pulling are expired?
    – diemer
    Nov 5 '13 at 20:12
  • Hey diemer -- I also put the show_expired parameter to no avail. It's gotta be something simple I'm missing but can't figure out what! Nov 5 '13 at 22:09

Have you tried labeling the statuses without the initial caps? I believe the default categories are open and closed not Open and Closed, is it possible that that is causing the issue for you? Additionally if you are trying to show all entries except a certain one consider using not. For example I have a status like status="not closed|open|under_development" in one of my relationship tags.

If you are trying to explicitly tell it to display all entries regardless of status, you can try status="not nonexistant" where nonexistant would be a status that has not been created so no entry will have it.

  • 1
    Ah -- it indeed was status. The "not nonexistent" trick is great (although there really should be an "all_status" value to do the same. Much appreciated UB! Nov 14 '13 at 15:55
  • Glad it worked out for you!
    – UltraBob
    Nov 15 '13 at 8:37

Case sensitivity apparently is (well, can be) different between the parameters for channel entries and those for relationship fields. It's not a black-and-white difference, though, and is to do with one being governed by MySQL and the other being governed by PHP. See https://support.ellislab.com/bugs/detail/19913 for more info.

  • Good point Rick and totally agree. The seemingly inconsistent syntax is part of the issue. Thanks for the link! Nov 25 '13 at 0:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.