We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Multi Relation

Development and Programming

Deborah Cross's avatar
Deborah Cross
113 posts
16 years ago
Deborah Cross's avatar Deborah Cross

Sigh, I spoke too soon. Neither Playa or MultiRelationship work. Playa displays the entries from the related weblog as a bulleted list with an add and remove button, but I can’t select anything to add and remove.

Back to adding Relationship 1, Relationship 2, Relationship 3 fields I guess!

Will EE2 have multi-relationship capability?

       
Emily Heath's avatar
Emily Heath
197 posts
16 years ago
Emily Heath's avatar Emily Heath

Can I just make a request to the EE team that this multi relation plugin gets a mention in the user guide? Or could someone who can, add it to the User Contributed Notes?

http://expressionengine.com/docs/modules/weblog/related_entries.html

I read the example (linked above) about the Night Club Owner wanting to post items that link to all his regular performers very carefully, and it seems to indicate to me, from the very start, that you or I, like he, would want to be linking to multiple entries. So the fact that this functionality has to be implemented by a plugin is really surprising!

Or am I missing something?

Cheers!

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore
Can I just make a request to the EE team that this multi relation plugin gets a mention in the user guide? Or could someone who can, add it to the User Contributed Notes? http://expressionengine.com/docs/modules/weblog/related_entries.html I read the example (linked above) about the Night Club Owner wanting to post items that link to all his regular performers very carefully, and it seems to indicate to me, from the very start, that you or I, like he, would want to be linking to multiple entries. So the fact that this functionality has to be implemented by a plugin is really surprising! Or am I missing something? Cheers!

It probably won’t get mention in the user guide simply because it is a third party add-on.

       
Scheffey's avatar
Scheffey
24 posts
16 years ago
Scheffey's avatar Scheffey

I’d like to ad my voice to the people experiencing problems when any parameters are added to the related entries tag. A couple different examples have already been noted, mine popped up when I tried to add “orderby=”date” sort=”desc”” to my tag and got the following error:

<pre><code>Notice: Undefined index: expertise_articles” orderby=”date” sort=”desc in /pathinfo/extensions/ext.multi_relationship.php on line 471

Notice: Undefined index: field_id_ in /pathinfo/extensions/ext.multi_relationship.php on line 478</code></pre>

If I take out the “orderby=”date” sort=”desc”” parameters the tag executes correctly.

We’re running 1.6.0 build 20070815. We are not running Multi-Site Manager. I tried Leevi Graham’s fix (thanks Leevi), but the error persisted. I’d appreciate any other ideas on a fix.

The error does not happen on reverse related entry calls, so if you can flip how the relationship is called you have some other options.

       
adrianbarbic's avatar
adrianbarbic
1 posts
16 years ago
adrianbarbic's avatar adrianbarbic
Mark, One question. Is there any way to implement a way to count the number of relations? Specifically, I’m trying to do show a list of guests (for a radio program), but I want it to be in sentence format, with commas in the appropriate places. The code I’ve attempted is as follows:
{related_entries id="guests"}
{if count == total_results}<a href="http://myurl.com/radio/guests/{entry_id}">{title}</a>{if:else}<a href="http://myurl.com/radio/guests/{entry_id}">{title}</a>, {/if}
{/related_entries}
Unfortunately, the count for every entry comes out to “1” - at least that’s what I get if I try {count}, so the above code always assumes each count equals the total results because the count and total results show up as “1” even if there are 2 or 15 guests. Do you have any workarounds for this?

I’m having the same issue … just want to know if anyone has a solution?

       
tomtomtom's avatar
tomtomtom
46 posts
16 years ago
tomtomtom's avatar tomtomtom

Modification in #21 worked for me. Essential Extension. Thanks.

Tom

       
BridgingUnit's avatar
BridgingUnit
214 posts
16 years ago
BridgingUnit's avatar BridgingUnit

Just a quick note: on 1.6.4, PHP5 I got the {REL etc bug appear after I’d deleted one of the multi-related entries via the the control panel’s edit table. Seeing it I cleared the caches etc via utilities - no difference. But after going into the specific weblog entry that referenced the multi-relations (again via the edit table) and reselecting the multi-related items I wanted and hitting ‘update’ the {REL bug disappeared from my front end.

My guess is that somewhere (db probably) the multi-relationship field details aren’t being correctly updated by EE when actions like delete are applied.

       
emagine media's avatar
emagine media
65 posts
16 years ago
emagine media's avatar emagine media

Is there any way this relationship plugin can be used with the SAEF form? I have a nice application I would like to use, but I can’t edit this information through my form.

It’s not a relationship field, it’s not a text area, what is it, and how would I put this code into EE?

       
Category 4's avatar
Category 4
18 posts
16 years ago
Category 4's avatar Category 4

For those of you trying to figure out how to get count working, there’s a very simple fix.

The very last statement in the extension is

return $tagdata;

Right before that line, add this statement

unset($count);

Mark, please let us know if this is in any way a bad idea. For the time being, it looks like it’s working for me.

       
October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

Mucho Grazias for this Extension!! Works Absolutely Great!

       
aro's avatar
aro
2 posts
16 years ago
aro's avatar aro
For those of you trying to figure out how to get count working, there’s a very simple fix. The very last statement in the extension is
return $tagdata;
Right before that line, add this statement
unset($count);
Mark, please let us know if this is in any way a bad idea. For the time being, it looks like it’s working for me.

This doesn’t work for me on 1.6.4 and ext.multi-relation 1.0.6 I added the line in the extension file but the count still remains at “1” for all related entries.

       
Andres F.'s avatar
Andres F.
10 posts
16 years ago
Andres F.'s avatar Andres F.

Using MSM on 1.6.4, I can’t seem to get the multi-relationship entries to appear. There has to be something amiss with the way I’m linking, but everything appears to be correct. Has anyone had this issue - related entries not appearing in the template output - and been able to resolve it? Best Regards, Andres

       
Ty Martin's avatar
Ty Martin
232 posts
16 years ago
Ty Martin's avatar Ty Martin

Has anyone tried out playa yet and compared it to multirelation here?

       
Jörg Gudehus's avatar
Jörg Gudehus
7 posts
16 years ago
Jörg Gudehus's avatar Jörg Gudehus

Will there ver be an answer to the sort questions? Is there a way to sort the multi_relation_entries? A hack for the extension? A way to get the results and sort them by myself. Anyone, anyone, the class?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I would recommend using Playa over this, as you can change the sort order directly in the control panel. Is there a particular reason you’re still using this extension?

       
First 10 11 12 13 14

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.