On a magazine website, I have an issues weblog, articles weblog and authors weblog.
An article record has three relationship fields:
rel. field: article_issue, child: issues weblog
rel. field: article_author1, child: authors weblog
rel. field: article_author2, child: authors weblog
I need to be able to pull a list of articles for a given issue, and get at the authors as well.
The following pulls the issue month/year (issues weblog {title}) and articles perfectly, but doesn’t pull the author data:
{exp:weblog:entries weblog="issues"}
{title} Issue
{reverse_related_entries weblog="articles"}
{title}
{article_subtitle}
{related_entries id="article_author1"}
by {author_first_name} {author_last_name}
{/related_entries}
{related_entries id="article_author2"}
and {author_first_name} {author_last_name}
{/related_entries}
{/reverse_related_entries}
{/exp:weblog:entries}It appears that the related_entries tags don’t work inside the reverse rel. tag, as I am getting screwy “{REL[article_author1]TdcZdc1vREL}” garbage on my screen. Perhaps this is the real problem?
I tried an exp:query next, but found that related_entries don’t work inside the query tags! Again, can someone please confirm this? I’m unable to find any info in the docs.
So is there a better way to accomplish this page? I’m eyeing a huge, nasty query to pull all the related data out, and would rather not go there if there’s another way.
EE 1.6.0
Thanks!