This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
Status vs. Category conflict with reverse related entries
Posted: 19 June 2008 03:14 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  65
Joined  02-08-2007

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.

 Signature 

Freed Seeds - Set It Free

Profile
 
 
Posted: 20 June 2008 12:44 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  65
Joined  02-08-2007

As an intermediate follow up, I am getting better results by abandoning the built in Status functionality (which isn’t working, as described above) and instead using custom fields in conjunction with the exp:weblog:entries search:custom_field parameter.

I don’t yet have complete success, but I will post back with a detailed description of the workaround for posterity’s sake.

I am now working to filter reverse_related_entries by category, relationship, and search:custom_fields, all together.

 Signature 

Freed Seeds - Set It Free

Profile
 
 
Posted: 20 June 2008 01:52 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Thanks for the report, I will be looking into this. I’ll keep you updated.

Profile
MSG
 
 
Posted: 24 June 2008 06:32 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Following up. May I ask that we try a reduction test here. Lets go with a basic weblog entries tag with a nested reverse_related_entries referencing a custom status. Let us know how it goes.

Profile
MSG
 
 
Posted: 02 July 2008 12:52 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Greetings again. Are you still experiencing trouble?

Profile
MSG
 
 
Posted: 10 July 2008 02:15 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Due to lack of feedback, we are closing this issue.  If additional information is available that would give cause to reopen investigation, simply use the link above to start a related thread, providing the additional details.

Profile
MSG
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60695 Total Logged-in Users: 41
Total Topics: 73127 Total Anonymous Users: 29
Total Replies: 394404 Total Guests: 579
Total Posts: 467531    
Members ( View Memberlist )