I think I have come across a significant bug - but the situation is complicated, so it may be difficult to describe clearly ... here goes:
I have a main weblog called “companies”, where each entry is a company. I then have many weblogs with many categories each, and different status groups, relating to the appropriate weblog=companies entry.
Therefore, to display the info relating to each company, I must use reverse_related_entries.
Since reverse related entries do not recognize category parameters, I am using an embed template between the reverse_related_entries tags to pull in another weblog:entries tag - using it to display the resulting reverse_related_entries data. This works because the weblog:entries tag recognizes category info in the url. This technique is mentioned here.
As I say, this works well - until I reach a related weblog with custom statuses. Entries with Custom statuses get filtered out and cannot be called in by any techniques I can think of. Since statuses are supposed to be supported by the reverse_related_entries tag, I have tried explicitly listing the statuses in the reverse_related_entries tag on the main template. No good. I have tried explicitly listing the statuses in the embedded weblog:entries tag. No good. The only status that will get displayed is the default “open”.
Here is the basic code for the main template:
{exp:query sql="SELECT entry_id FROM exp_weblog_titles WHERE title = '{group}'"}{exp:weblog:entries weblog="companies" disable="categories|category_fields|member_data|pagination|trackbacks" dynamic="off" rdf="off" entry_id="{entry_id}" limit="1"}{/exp:query}
{reverse_related_entries weblog="{url_name}"}
{embed="client_embeds/table_content" the_id="{entry_id}" main_cat="{url_name}" document_url="{url_name}_document"}
{/reverse_related_entries}
{/exp:weblog:entries}
And here is the embedded template code:
{exp:weblog:entries weblog="{embed:main_cat}" entry_id="{embed:the_id}" disable="category_fields|member_data|pagination|trackbacks" rdf="off" status="positive|negative|open|closed"}
<tr>
<td><a href="{{embed:document_url}}">{title}</a></td>
<td>{categories backspace="6"}{category_name}<br />{/categories}</td>
<td>{entry_date format="%m/%d/%y"}</td>
</tr>
{/exp:weblog:entries}
It should be noted that removing the entry_id parameter in the embedded exp:weblog:entries tag enables the status parameter - BUT, the tag no longer filters by the original reverse_related_entries setup, limiting it to a particular weblog=companies entry. Instead, all entries of the category and status are shown, regardless of which company entry they are related to.
It may be inaccurate to call this a ‘bug’, as it may go beyond any supported use of the software, but in any case, it is something I desperately need to accomplish and would appreciate any advice.
Specifically, filtering reverse_related_entries by category, status, and relationship, all together.
