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.
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.
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.
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
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.
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.