related_entries not showing
Posted: 10 July 2008 05:07 PM   [ Ignore ]  
Summer Student
Total Posts:  20
Joined  03-01-2007

I’m trying to display a related entry from a weblog, however I get absolutely no output between the related_entries tag.  Reverse related entries are working fine, and both weblogs output fine by themselves.  Also, if I leave the relationship unselected, the ‘if no_related_entries’ section does not output either.

Any help would be greatly appreciated!

{exp:weblog:entries disable="member_data|pagination|trackbacks" entry_id="157"}
{title}
    {related_entries id
="projects_adminContact"}    
       title
: {title}
    {if no_related_entries}
  
<h2>No Performer Information Available</h2>
   
{/if}
{
/related_entries}
{
/exp:weblog:entries}

Using version 1.6.4 with MSM by the way.  I have gone through the database, and checked that ALL weblogs, custom fields, and entries are associated with the correct site in the database.

Profile
 
 
Posted: 10 July 2008 06:13 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  20
Joined  03-01-2007

I’ve been looking through mod.weblog.php a bit.
Around line 356 there is a conditional statement that reads:

if (count($TMPL->related_data) > 0 AND count($this->related_entries) > 0)
        
{
            $this
->parse_related_entries();
        
}

It seems that count($this->related_entries) always returns 0. 
Still trying to figure out exactly where that is assigned.

Profile
 
 
Posted: 10 July 2008 06:28 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  20
Joined  03-01-2007

Never mind. It was a bad extension.

Profile
 
 
Posted: 10 July 2008 07:44 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  11754
Joined  04-29-2002

Whew. So I can close the thread?

Which bad extension?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
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: 62690 Total Logged-in Users: 26
Total Topics: 77269 Total Anonymous Users: 12
Total Replies: 417091 Total Guests: 173
Total Posts: 494360    
Members ( View Memberlist )