Display all entries related to parent relationship
Posted: 09 September 2007 11:12 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  56
Joined  08-13-2007

Hello,

I need to show every entry that has the same “parent” related entry.

I have a weblog of shows and a weblog of reviews.

from each review page, I want to display the name of the show and all the reviews from the reviews weblog.

{exp:weblog:entries weblog="reviews" orderby="date" sort="desc" rdf="off" disable="categories|member_data|pagination|trackbacks" limit="1"}
{related_entries id
="reviews_show_theatre"}
<h3>{show_title}</h3>
{/related_entries}
{
/exp:weblog:entries}

<ul>{exp:weblog:entries weblog="reviews" orderby="date" sort="desc" rdf="off" disable="categories|member_data|pagination|trackbacks"}
<li><a href="{title_permalink=press/show/index}">{title}</a></li>
{/exp:weblog:entries}
</ul>

Of course, from a review page, this obviously only displays only the current review, not all of the ones related to the show.

Thanks for your help.

Profile
 
 
Posted: 10 September 2007 04:01 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

You’ll have to use the query module for now, but please add your voice to the feature request for a sibling relationships tag.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 10 September 2007 08:06 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  56
Joined  08-13-2007

Any example of using the query module for such a purpose?

Profile
 
 
Posted: 01 March 2008 12:57 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

Hi folks,

I don’t know if any of you still need this, but I have put together the beginnings of a plugin to fetch an entry’s siblings. You can download Sibleengs here. It’s an early version and the documentation is rough, but if it’s something that might help you, I’d appreciate if you’d give it a try and send me your feedback.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 27 March 2008 07:27 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  03-26-2008

The Sibleengs plugin is ace smile
Thank you so much, just what i’ve been needing.
It’s working but it’s throwing some errors…

Warning: implode() [function.implode]: Bad arguments. in /../system/plugins/pi.sibleengs.php on line 197
Warning
: Invalid argument supplied for foreach() in /../system/plugins/pi.sibleengs.php on line 198
Notice
: Undefined variable: sorts in /../system/plugins/pi.sibleengs.php on line 207
Notice
: Undefined index: date in /../system/plugins/pi.sibleengs.php on line 218
Notice
: Undefined index: in /../system/plugins/pi.sibleengs.php on line 218
Notice
: Array to string conversion in /../system/plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in /../system/plugins/pi.sibleengs.php on line 176

Being a php novice, is there anything I’m doing wrong?
I’m using this to call the siblings…

<h2>Related Reviews</h2>
    <
ul>
        
{exp:sibleengs url_title="{segment_3}" orderby="date" sort="desc" exclude_self="yes"}
        
<li><a href="{url_title_path=reviews/review}">{sibleengs_title}</a></li>
{/exp:sibleengs}
    
</ul>

Profile
 
 
Posted: 10 June 2008 04:39 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  04-25-2008

I get a similar error as above.

Warning: implode() [function.implode]: Invalid arguments passed in //////plugins/pi.sibleengs.php on line 197
Warning
: Invalid argument supplied for foreach() in //////plugins/pi.sibleengs.php on line 198
Notice
: Undefined variable: sorts in //////plugins/pi.sibleengs.php on line 207
Notice
: Undefined index: m_field_id_1 in //////plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in //////plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 176
Notice
: Undefined index: m_field_id_1 in //////plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in //////plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 176
Notice
: Undefined index: m_field_id_1 in //////plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in //////plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in //////plugins/pi.sibleengs.php on line 176

Using EE 1.6.3 build 20080421 and Sibleengs 0.8.1, if that helps.

Using this code to display.

{exp:sibleengs url_title="{segment_3}" orderby="title" sort="desc" exclude_self="yes"}
<h2>{sibleengs_title}</h2>
{/exp:sibleengs}

Profile
 
 
Posted: 11 June 2008 07:31 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

I’ll give it a look and see what sort of goofiness is going on.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 11 June 2008 08:34 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

Give the download another try and let me know if the errors still show up. Also, do let me know if this plugin is useful for you. If folks find it valuable I can finish it up and add features that are currently missing, such as date variable formatting and conditionals.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 11 June 2008 09:19 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  04-25-2008

Well, I’m getting some other errors now.

Notice: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: m_field_id_1 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 176
Notice
: Undefined index: m_field_id_1 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 176
Notice
: Undefined index: m_field_id_1 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Undefined index: m_field_id_2 in /home//public_html/v3//plugins/pi.sibleengs.php on line 167
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 172
Notice
: Array to string conversion in /home//public_html/v3//plugins/pi.sibleengs.php on line 176
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119
Notice
: Undefined index: game in /home//public_html/v3//extensions/ext.playa.php on line 1109
Notice
: Undefined index: field_id_ in /home//public_html/v3//extensions/ext.playa.php on line 1119

Thing is, the plugin does display the sibbling articles as intended, but with all those errors on top of the page.

Profile
 
 
Posted: 12 August 2008 07:20 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  04-25-2008

I’ve decided to give it another shot but this time I’m getting a different error and no siblings at all.

Notice: Trying to get property of non-object in /.../.../.../.../plugins/pi.sibleengs.php on line 79

Notice
: Undefined index: title in /.../.../.../.../plugins/pi.sibleengs.php on line 218

Notice
: Undefined index: in /.../.../.../datos/.../pi.sibleengs.php on line 218

I’ve got the latest build of the plugin installed and the latest build of EE. I’m using this code in the template.

{exp:weblog:entries weblog="video" disable="categories|member_data|trackbacks" limit="1" rdf="off" require_entry="yes" track_views="two"}
{if no_results}
{redirect
="video/view"}
{
/if}
{title}
{video_description}
{related_entries id
="video_related_game"}
{embed
="video/videoGameInfo" the_id="{entry_id}"}
{
/related_entries}
{
/exp:weblog:entries}

{exp
:sibleengs url_title="{segment_3}" orderby="title" limit="5" sort="desc" exclude_self="yes"}
{sibleengs_title}
{
/exp:sibleengs}

Profile
 
 
   
 
 
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 09:33 AM
Total Registered Members: 65026 Total Logged-in Users: 38
Total Topics: 82116 Total Anonymous Users: 19
Total Replies: 441310 Total Guests: 186
Total Posts: 523426    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt