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

Ozmodiar's avatar
Ozmodiar
16 posts
about 16 years ago
Ozmodiar's avatar Ozmodiar

I use the ext on 2 sites. The mod to remove the REL code as shown below worked on 1 site, but not on the other.

{REL[51][directors]B94dBcBIREL}{REL[52][directors]B94dBcBIREL}{REL[53][directors]B94dBcBIREL}

So, I still get this after modifying my php file as described in a previous post. What should I check next ?

EDIT: NEVERMIND … MY BAD! SORRY 😉

       
Christopher Simmons's avatar
Christopher Simmons
68 posts
15 years ago
Christopher Simmons's avatar Christopher Simmons

I AM still getting the weird {REL[colors]Ukr1znuSREL} codes even after performing the modification. Odd, that.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
15 years ago
Leevi Graham's avatar Leevi Graham
Chris, I believe you can already unselect entries. If you only have one entry selected (and if you have multiple, click on one to unselect the rest), then hold ctrl (command on mac) and click on that one selection to unselect it. When you don’t have any entries selected, you can use something like:
{if products != ""}
to check if the field is empty or not. Of course my field in this case is named “products.” I hope that helps.

Jacob,

I used:

{if blog_related_posts != 0} 
    <ul>
      {related_entries id="blog_related_posts"}
      <li>{title}</li>
      {/related_entries}
    </ul>
    {/if}

to test if there was no entries. This also removed the {rel} gibberish which was outputted if there was no related post.

So my little widget looks like:

<ul>
  {exp:weblog:entries weblog="blog" disable="" }
  <li>{title}
    {if blog_related_posts != 0} 
    <ul>
      {related_entries id="blog_related_posts"}
      <li>{title}</li>
      {/related_entries}
    </ul>
    {/if}
  </li>
  {/exp:weblog:entries}
</ul>
       
Jesse M's avatar
Jesse M
92 posts
15 years ago
Jesse M's avatar Jesse M

Any word on the incompatibility of this with Quick Save? That makes it a non-starter for me.

       
Jesse M's avatar
Jesse M
92 posts
15 years ago
Jesse M's avatar Jesse M

Nevermind – I took a look at the extension code and EE core code and I see why it doesn’t work and can’t possibly work.

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

Are we totally sure it isn’t possible? Would be nice to have it work, that’s for sure.

I had a short conversation with Mark H. in January ‘07 in which he seemed to indicate that it would be possible to rewrite multi-relation to work with quick save. When he had time. Which I’m sure he doesn’t have much of. 😊

       
ms's avatar
ms
274 posts
15 years ago
ms's avatar ms

Just for reference: If getting the weird {REL[colors]Ukr1znuSREL} codes after updating to EE 1.6.0, be sure to re-apply the hack to mod.weblog.php as mentioned by Mark at the top of the extension file. Works without any change with 1.6.0.

-Markus

       
Jesse M's avatar
Jesse M
92 posts
15 years ago
Jesse M's avatar Jesse M
Are we totally sure it isn’t possible? Would be nice to have it work, that’s for sure.

Well, Mark would obviously be the authority.

I looked at the code and it seemed to me that it would be impossible for it to work with Quick Save because Multi Relationship stores its data using the ‘submit_new_entry_end’ hook, and as far as I can tell, that hook is never invoked on a Quick Save. It seemed to me that it might be possible, using ‘submit_new_entry_start’, to make it work when updating an entry, vs. creating a new entry. I believe the only reason Multi Relationship needs to wait for ‘submit_new_entry_end’ to store the data is so that it has the entry_id, but for existing entries I think you could get the entry_id at the time of ‘submit_new_entry_start’.

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

Just for reference:

I get the following error with this extension in ee 1.6:

Undefined variable: field_type in [path to system here]/cp/cp.publish_ad.php on line 7197[ish]

I notice that the solution is here:

http://ellislab.com/forums/viewthread/38843/#181791

And that obviously, it’s still a potential problem.

For me though it appeared when the multi relationship was added as the first custom field for a paticular weblog. Once I added others, the error message disappeared.

       
Jacob Fentress's avatar
Jacob Fentress
37 posts
15 years ago
Jacob Fentress's avatar Jacob Fentress
Mark & co., It’s worth noting that the odd {REL} behavior apparently sometimes happens even if you ARE running PHP 5 – i’m on 5.2.1, and had the same issue. However, your fix to mod.weblog works for me too! Just thought i’d contribute that you might try the fix even if you’re NOT on PHP 4, if you’re having the issue! Adrienne Travis

I never had this issue running PHP 5 (5.2.2) before upgrading to EE 1.6.0. After upgrading, I tried this fix, but it caused me to receive a blank page.

The only way I could fix it was to change my server to use PHP 4 and apply the hack.

Is there any way to get this extension to work on PHP 5 using EE 1.6.0?

Thanks in advance.

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

@jacob is this still not working for you? i’ve implemented it on 1.6 and php5 a few times and it seems to work Ok.

       
Jacob Fentress's avatar
Jacob Fentress
37 posts
15 years ago
Jacob Fentress's avatar Jacob Fentress

@Mark,

Honestly, I got to a point where I just disabled the extension and moved my data to another day of doing things (multiple fields, bleechh). I haven’t tried it in a while, so I can’t say if it is working or not.

Hopefully, I’ll have a chance to try again soon, and I will keep you posted. Thanks for checking on this.

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

Thanks, let me know how it goes. I missed your last post and only just happened upon it today. I’ll look forward to any updates.

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

I couldn’t exactly find it in this thread, but what is new about 1.0.5? The last version I had was 1.0.4.

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak

I’m running ExpressionEngine 1.6.0 - Build: 20070627 with PHP version 4.4.4 and got this error. I applied the hack to mod.weblog.php as well.

Any clue?

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476

Notice: Undefined offset: 1 in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 469

Notice: Undefined index: field_id_ in /home/image202/public_html/yo/extensions/ext.multi_relationship.php on line 476
       
First 2 3 4 5 6 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.