I’m running into an issue now with special characters in the titles of my related entries. Has anyone encountered this? In my case, there is one entry with an é in the title, so Playa is throwing a REL error on that entry - but the other entries are coming out OK. Also, some entries with multiple quotes (double and single quotes) in the title seemed to be problematic.
This issue has been fixed in Playa 1.1.2.
Thanks Ryan for your help with this!
Love this extension, the only thing it is missing for me is the ability to use {count} so I can treat the first related entry differently. I saw a few earlier posts about this as well but there doesn’t seem to have been an answer (or alternate solution!).This is somewhat tested…let me know if you have any problems. PHP must be turned on for the template where you are using this.<?PHP $count = 1; //set your starting value for count ?> //On your first entry, count should be equal to 1 and output the class called first //Count will continue to get larger, so it will never equal 1 again <?PHP if ($count == 1) { echo ' class="first"';} else { $count++; } ?>
Sorry to not have replied sooner, I let this project slide while working on something else.
Here is what I did and get a count of 1 for everything.
<dt>Memory</dt>
<dd>
<?PHP
$count = 1; //set your starting value for count
?>
{related_entries id="products_memory"}
<div class="configurator_option"><input type="radio" value="{parts_cost}" name="memory" <?PHP if ($count == 1) { echo ' checked="checked"';} else { $count++; } ?> /> <label>{title} - ${parts_cost} | ${parts_list_price} | <?PHP echo $count; ?></label></div>
{/related_entries}
</dd>
I have multiple sets of radio buttons and need the first one selected in each case.
Brandon, any chance of getting count in an upcoming update to Playa?
Brandon, any chance of getting count in an upcoming update to Playa?
I would love to add a counter some day, but since the PHP thing does work (if a bit hackish), it’s very low on my priority list. If someone else has EE extension experience and wants to give it a shot, talk to me.
If anyone could shed some light on the following questions, I’d really appreciate it. 😊
1) I am using Mark Hout’s extension right now. I use it to relate selected gallery entries to weblog entries. Can Playa do that too?
2) Is it possible to select how many of the entries related to an entry to display? The blog where I pull in the gallery entries has an RSS feed, and there I only want to show a limited number of the related entries, and I haven’t been able to figure out a solution for this so far.
3) How about selecting which of the related entries to show by way of a gallery custom field on those entries?
I just posted a few tips on how to get Playa working in a masked control panel that don’t require any modifications to the extension itself:
Playa 1.1.3 is out: http://brandon-kelly.com/apps/playa/
Fixes a caching issue and speeds up entry saving.
this thread is ridiculous.
Agreed!
I’ve announced Playa 1.2 on a new thread. Let’s let this one RIP, shall we?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.