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

Playa

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Oops also I get this for the text that is placed into the database when publishing an entry :

[15] News Item 1 [16] News Item 2 [17] News Item 3

This is shown on the page after you click save for the entry you are creating.

Don’t know if it’s meant to just place in the number though?

Best wishes,

Mark

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly
Just as a thought. Does this require a certain version of PHP to work correctly? I am on V4 ish but I seem to remember something about V5 working better for these kinds of extensions? Just a thought though.

Yeah, looks like out of the box, this does require PHP5.

You can try Mark Huot’s hack to get Multi-Relation working on PHP4:

Open your /system/modules/weblog/mod.weblog.php file and find this line
// -------------------------------------------
// 'weblog_entries_tagdata' hook.
to this line
//
// -------------------------------------------
replace the inside with this
if (isset($EXT->extensions['weblog_entries_tagdata']))
{
   // -- PHP4 Fix For call_user_func_array not passing by reference
   global $Weblog; $Weblog = $this;
   // -- End Fix
   
   $tagdata = $EXT->call_extension('weblog_entries_tagdata', $tagdata, $row, $this);
   if ($EXT->end_script === TRUE) return $tagdata;
   
   // -- PHP4 Fix For call_user_func_array not passing by reference
   $this = $Weblog; unset($Weblog);
   // -- End Fix
}
       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly

Just posted a new version, which fixes that visual glitch in the CP.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Brandon,

Aha thought that it might have to do with the PHP version. Thanks for the style update but I will have to try and get the PHP version upped on the server as I don’t really like hacks all that much. May have to do so in this case if required though :-(

Thanks again for looking into that for me.

Best wishes,

Mark

       
seajay's avatar
seajay
109 posts
17 years ago
seajay's avatar seajay

I really like the way this looks.

Unfortunately, after I select options from the left-side list and save the entry, they don’t “stick,” i.e., there are no longer any selected options on the right-side.

I am using EE Hosting, so I don’t think I have a PHP problem.

Look forward to this getting worked out. I really like the UI.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly

Are you using EE 1.6 or later? Also, can you run phpinfo() to confirm your PHP version?

       
seajay's avatar
seajay
109 posts
17 years ago
seajay's avatar seajay

Actually, this only happens with the “Quick Save” button. It’s working fine with “Update” button. And I’m having the same problem with “Multi Relation.”

Unfortunately, I’m using “Publish Improvements” to make “Quick Save” my primary save button. (Mostly in order to avoid the preview/view entry screen.)

Looking for solutions.

Addition: EE 1.6.2 and PHP Version 5.1.6

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly

Ah, yes Playa and Multi-Relation both do not work so well with Quick Save. Eventually I’m going to look into it and see if I can fix that.

       
Linda A's avatar
Linda A
647 posts
17 years ago
Linda A's avatar Linda A

This looks very interesting. 😊 Does it work with galleries as well, or just weblogs?

Two things I have wished for with the previous extension were the ability to specify not just a weblog (or weblogs) but also a category, as well as the ability to limit not just how many relations you will select but how many you will display, since you may not always want to show all images. For example, in an RSS excerpt of a post.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly
Does it work with galleries as well, or just weblogs?

It doesn’t work with galleries yet, but that’s on the to-do list.

Two things I have wished for with the previous extension were the ability to specify not just a weblog (or weblogs) but also a category, as well as the ability to limit not just how many relations you will select but how many you will display, since you may not always want to show all images. For example, in an RSS excerpt of a post.

I would love to be able to add template tag-based overrides to the number of entries that get displayed (for example, {related_entries id="my_playa_field" limit="5"}), but I’m not quite sure how to go about doing that yet. I’m going to look into it if I get the time.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly

For those interested, here are a few areas that we’re currently using Playa on NavigantConsulting.com:

  • http://navigantconsulting.com/industries/construction/ (and related pages) - In the Spotlight banners and Key Contacts

  • http://navigantconsulting.com/industries/construction/management_consulting_services/ (and related pages) - Downloads and Key Contacts

  • http://navigantconsulting.com/professionals/bio/roddy_allan/ (and related pages) - Industry Specialization and Functional Expertise

  • http://navigantconsulting.com/knowledge_center/hot_topics/fcpa/ (and other Hot Topics) - Testimonials, buttons, and the content displayed after you click each button.

Before Playa, the first 2 examples just used multiple Relationship fields (i.e. Download 1, Download 2, Download 3). But that technique wasn’t robust enough to satisfy the client requirements for the Professionals and Hot Topics sections, so I ended up building Playa for those. Then I wrote a quick script to convert all those Relationship field sets to Playa fields, which has proved to make things much more convenient in those areas as well.

       
Yvonne Martinsson's avatar
Yvonne Martinsson
204 posts
17 years ago
Yvonne Martinsson's avatar Yvonne Martinsson

Hi,

I’m wondering if Playa works with the reverse_related_entries tag as well? If so, how would I code it? It’s, in my view, the reverse_related _entries that make the relationship function really powerful and useful for all kinds of dynamic listings and stuff like that.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

Just a heads-up, the backend’s not working with Opera. Which, almost certainly, is the fault of Opera and its DOM model. Just saying.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly
I’m wondering if Playa works with the reverse_related_entries tag as well? If so, how would I code it?

I had actually never heard of that tag until now, but Playa saves its relationships in the exp_relationships table the same way that the Relationship field does, so I assume it’ll work just fine.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
17 years ago
Brandon Kelly's avatar Brandon Kelly
Just a heads-up, the backend’s not working with Opera. Which, almost certainly, is the fault of Opera and its DOM model. Just saying.

Thanks for the heads up! I’ll look into it. IE7 also has a minor issue with it, due to an overflow bug.

       
1 2 3 4 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.