Hi guys, I’m pretty new to EE but I love it. I have a problem I can’t seem to fix myself. It seems quite simple so perhaps you can help me out =)
I have a bunch of publications with different authors and I’d like to be able to display the publications by a certain author. Therefore I have created a weblog for each publications and authors, with the publications having a custom relationship field to the author weblog. Furthermore, the publications are divided into multiple categories. Let’s just assume there are only 2 - books and magazines.
The main page displays all publications sorted chronologically with all authors:
Books
-Publication1
-Publication3
Magazines
-Publication2
-Publication4
The code for that is
{exp:weblog:categories weblog="lab_publications" style="linear"}
<h2>{category_name}</h2>
<p> {exp:weblog:entries weblog="lab_publications" orderby="date" category="{category_id}"}<br />
{publications_text}<br />
{/exp:weblog:entries}</p>
<p>{/exp:weblog:categories}and it works just fine.
The code I have for what I’d like to implement, however, does not work fine. It is:
{exp:weblog:categories weblog="lab_publications" style="linear"}
<h2>{category_name}</h2>
<p> {exp:weblog:entries weblog="lab_people" orderby="date"}<br />
{reverse_related_entries orderby="date" sort="desc" category="{category_id"}} <br />
{publications_text}<br />
{/reverse_related_entries}<br />
{/exp:weblog:entries}<br />
{/exp:weblog:categories}It gets all the correct entries but publishes them as
Books:
-Publication1
-Publication2
Magazines:
-Publication1
-Publication2
ie.. it outputs a duplicate list. Does this mean the category parameter is not being parsed in the reverse relation block?
Your help would be much appreciated.
George