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

Linda A's avatar
Linda A
661 posts
15 years ago
Linda A's avatar Linda A

Is it possible to control the order the related entries (in this case, related gallery entries) appear? As far as I can see, they appear in a random order on the publish page (I have it set to sort by title and descending), and they appear in the same order on the actual website.

       
Linda A's avatar
Linda A
661 posts
15 years ago
Linda A's avatar Linda A

Another possible issue:

When I view the post with the relations after editing (as in, within EE’s control panel still), it lists a set if numbers at the end. One for each relation, it looks like. However, it appears they increment every time I edit; this is my first entry with relations, but they’re up to 20-27 now.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
15 years ago
Ryan M.'s avatar Ryan M.
Not to be a pain but did anyone find a fix for the quick save button wiping the contents of the menu? thanks

This is a well known issue and I don’t think there is a fix for it. I could be wrong, but I think you’ll find if you read deep enough that the Quick Save and Submit/Update use different hooks and there wasn’t a way to update this extension so that its info is saved if you use Quick Save.

Every site I’ve installed multi-relation on I’ve either had to inform th client not to use the “Quick Save” button, or I’ve had to install the Publish Improve extension to hide the Quick Save button.

       
Linda A's avatar
Linda A
661 posts
15 years ago
Linda A's avatar Linda A

Anyone else see the issues I described above with the sorting being random rather than following the setup and the odd incrementing of the numbers?

       
Ben Kimball (UT)'s avatar
Ben Kimball (UT)
33 posts
15 years ago
Ben Kimball (UT)'s avatar Ben Kimball (UT)

Hey Mark.

My copy of multi-relationships 1.0.6 has the following code in it:

function modify_template( $tagdata, $row, &$weblog )
    {
        global $DB, $FNS, $TMPL, $EXT, /*$all_fields,*/ $Weblog;
        $count = 0;
        
        if($EXT->last_call !== false)
        {
            $tagdata = $EXT->last_call;
        }
        
        $reference = isset($Weblog->query) ? "Weblog" : "weblog";
        
        foreach($TMPL->related_data as $key => $rel_data)
        {
            if(!isset($$reference->cfields[1])) continue;
            
            $field_id = $$reference->cfields[1][$rel_data['field_name']];

Based on a little bit of digging in mod.weblog.php, I believe that the cfields array is indexed by site_id, and I think that’s why MR isn’t working on my site (which has ID 3, not 1). When MR looks in the cfields[1] array, it doesn’t find the key ‘course_related’ (which is the name of my MR custom field), and throws notices, and of course doesn’t print any relationship data:

Notice: Undefined index: course_related in /export/httpd/data/ce/edit/extensions/ext.multi_relationship.php on line 471

Notice: Undefined index: field_id_ in /export/httpd/data/ce/edit/extensions/ext.multi_relationship.php on line 478

It looks to me like the [1] should be replaced by the current site ID, or the site ID from the weblog:entries tag if specified. Is that right?

Thanks! Ben

       
mArzsmAn's avatar
mArzsmAn
45 posts
15 years ago
mArzsmAn's avatar mArzsmAn

Hey Ben

Thanks a lot for this, I couldn’t find the problem why my relations didn’t show up. I added $PREFS to the globals, and changed all the indexes of cfields to $PREFS->ini(‘site_id’), now it finally works

       
swenke's avatar
swenke
70 posts
15 years ago
swenke's avatar swenke

Was this extension ever deamed safe for 1.6? And is a checkbox version in the works?

       
stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo
Multi Relation saves the day (again)… now, has anyone come up with a way of counting how many entries are related??? Specifically, I want to create a conditional with different output based upon if there’s a single related entry, two related entries or more than two.

Did you figure out a way of getting this to work?

Mark I notice you asked the count question before realising you were using your extension!

I want to use the count variable to create blocks of lists.

       
Adam Khan's avatar
Adam Khan
319 posts
15 years ago
Adam Khan's avatar Adam Khan

Still waiting for this to work in EE v1.6.1.

How nice it would be if Happy Cog could lend Mr Huot to the EE community at large. We rely on his brilliance. Can’t there be some webdev equivalent of a Fulbright or Rhodes or something?

       
3tu admin's avatar
3tu admin
11 posts
15 years ago
3tu admin's avatar 3tu admin

Hi Mark,

I think I encountered a small ‘bug’ in the multi relationship extension. I already reported it on the bug tracker, but they told me to refer to you. It is the following:

–

Upon editing (and perhaps also publishing) an entry with at least one Multi-Relationship field and another required field (can be any kind of field), and not filling in the required field, the control pannel returns the entry stating a missing required field. The chosen (or previous existing) Multi-Relationship setting in other fields are, upon the return, not remembered and return blank.

if not noticing this, clicking update will result in a loss of the multi-relationship values chosen.

–

Hope this helps.

and thanks for the very useful plugin, I use it a lot. so much in fact that I reached its limits. If I want to have two relations between two entries, in the same direction, they will be noted the same in the table. So I had to use it in two differetn directions parent -> child and child-> parent to solve this problem. And in one case I had to make another relationship table to cater for the third relation. Maybe I relate to much. But it helped tremendously to use your plugin.

Maarten.

       
juro's avatar
juro
118 posts
15 years ago
juro's avatar juro

For the record, I also had the REL problem, although I am running PHP5. The hack worked though: http://ellislab.com/forums/viewthread/39595/P18/#192755

Thank you for the extension!

       
timkelty's avatar
timkelty
177 posts
15 years ago
timkelty's avatar timkelty

2 things that would make this great extension even better:

  • checkboxes instead of a select box!
  • another checkbox or link at the bottom or top labelled: Check all?
       
james Brown's avatar
james Brown
492 posts
15 years ago
james Brown's avatar james Brown

I second (or third or fourth) the request for 1.6.2 compatibility!

       
Linda A's avatar
Linda A
661 posts
15 years ago
Linda A's avatar Linda A

Does it not work at all in 1.6.2?

       
james Brown's avatar
james Brown
492 posts
15 years ago
james Brown's avatar james Brown

no idea.

       
First 6 7 8 9 10 Last

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.