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

stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Is it possible to list the selections in descending alphabetical order or even change the way it sorts?

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

I was using your extension in my SAEF and everything worked perfect. To make it work I just called the “modify_post” method with the “weblog_standalone_insert_entry” hook.

When I updated to 1.6.1(I think that was the reason) it stopped working. After banging my head a lot I found that the array “$submitted_mrel” is empty (it’s actually not empty, the array structure still exists, only the values are empty) when it is accessed in the method “submit_relation” so commenting out “unset($POST[“field_id”.$field[“field_id”]]);” around line 398 fixed it again.

It’s just that commenting out that line doesn’t feel very safe, so for certainty I duplicated the method just for the saef hook.

Now my question is if you have any idea why that array suddenly is empty and if it is safe to just comment out that line?

       
Adam Khan's avatar
Adam Khan
315 posts
17 years ago
Adam Khan's avatar Adam Khan
When I updated to 1.6.1(I think that was the reason) it stopped working.

A 1.6.1 fix would be very nice.

       
lithiumdave's avatar
lithiumdave
215 posts
17 years ago
lithiumdave's avatar lithiumdave
Thanks! I’ll look for that plugin and see if it works. Cheers

Just wondering if you got switchplus working? I just did, having found myself in the same situation as you and it worked a treat.

Details are here - you can see my code in that thread, but as it’s relevant here too…

{exp:switchplus values="1|2|3|4|5"}
{related_entries id="services-related"}
<li class="{switchplus}">{title}</li>
{/related_entries}
{/exp:switchplus}

The trick is to make sure the switchplus tags are outside of the related entries tags.

Hope that helps. Thanks Mr. Wilson for the plugin : )

       
MediaGirl Inc.'s avatar
MediaGirl Inc.
186 posts
17 years ago
MediaGirl Inc.'s avatar MediaGirl Inc.

I’m unclear about something. Does this extension work with 1.6?

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo
I’m unclear about something. Does this extension work with 1.6?

Do you mean multi relation because I use it on 1.61 ok.

       
MediaGirl Inc.'s avatar
MediaGirl Inc.
186 posts
17 years ago
MediaGirl Inc.'s avatar MediaGirl Inc.

Hmmm. Not sure why but I couldn’t getting it 100% working on v1.61. I could never get it to print out any data. I could see that it was getting pushed to the database correctly but it wasn’t getting called back out in the template.

       
Clearpeak's avatar
Clearpeak
413 posts
17 years ago
Clearpeak's avatar Clearpeak

Yeah, I’m not getting this to work for 1.6.1. I’m trying to use it for reverse related but it’s not outputting the entries:

{exp:weblog:entries weblog="navigation" status="not closed|test" orderby="title" disable="member_data|pagination|trackbacks" dynamic="off"}

{reverse_related_entries weblog="about" sort="desc" orderby="title"} {title}

{/reverse_related_entries}

{/exp:weblog:entries}

       
benpowell's avatar
benpowell
29 posts
17 years ago
benpowell's avatar benpowell

Using 1.06 on EE1.6.1 I’m getting a problem with relationships being deselected. If I have an entry where I’ve previously set up relationships and edit that entry then the previously selected relationships are highlighted as expected. If during the edit process I do not complete a required field and then click on the Update button the page refreshes and displays the relevant error message but all my selected relationships are now unselected.

       
lithiumdave's avatar
lithiumdave
215 posts
17 years ago
lithiumdave's avatar lithiumdave

Just wondering generally what would be involved in changing the multi relation dropdown list into checkboxes instead, much as the category checkbox extension works? From a usability point of view it makes so much more sense to me. I’d just love to have checkboxes instead of a dropdown 😊

       
Andrew Munro's avatar
Andrew Munro
51 posts
17 years ago
Andrew Munro's avatar Andrew Munro

Thanks Mark, this is just what I was looking for! awesome stuff

Not sure if anyone knows how to fix this yet but I read through the 6 pages after I got the same error as others:

{REL[64][shopping_rel]dcZtrmAHREL}{REL[65][shopping_rel]dcZtrmAHREL}

I’m trying to relate a set of alarm batteries with the alarm is goes with within the same weblog of “shopping”

Tried the mod.weblog.php hack as someone says it fixed there problem even though they had php5 (which i believe i have) and that gave me the error below

Parse error: syntax error, unexpected T_STRING in mod.weblog.php on line 3124

Any ideas? many thanks!

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

The Parse error looks like you missed a quote or a semi colon somewhere in the hack, so I’d double check that first. Then I’d clear all your caches in EE (sometimes that causes a problem if you’ve recently moved servers).

       
Andrew Munro's avatar
Andrew Munro
51 posts
17 years ago
Andrew Munro's avatar Andrew Munro

Legend Mark, all I had to do was clear the cache in EE and away it went 😊 thanks again

       
Andrew Munro's avatar
Andrew Munro
51 posts
17 years ago
Andrew Munro's avatar Andrew Munro

Not to be a pain but did anyone find a fix for the quick save button wiping the contents of the menu? thanks

       
benpowell's avatar
benpowell
29 posts
17 years ago
benpowell's avatar benpowell
Not to be a pain but did anyone find a fix for the quick save button wiping the contents of the menu? thanks

Likewise with all relationships being deselected if an entry is updated and reloads with an error message because a required field hasn’t been filled for example.

       
First 5 6 7 8 9 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.