Is it possible to use playa with low variables and low search?
We have section homepages (Sample: http://eatest.imb.org/eastasia/connec...) which have multiple entries on them. These entries are currently selected via a playa field withen low variables. (The name happens to be connect_items.) We also want to allow people to search the items.
I was trying to use the :child_ids from Playa (http://docs.pixelandtonic.com/playa/t...) to get the ids to feed into the entry_id parameter for low_search, but I don't seem to be able to get that data out. I could use the whole loop and use pipe separation, but I'm still not sure I could turn that into an embed.
Something like this was my idea
{exp:low_variables:parse var="connect_items" parse="inward"}{exp:low_search:results limit="10" entry_id="" entry_id="{connect_items:child_ids}" paginate="bottom"}
{title}
{/exp:low_search:results}{/exp:low_variables:parse}
or I could embed all of that into an embed like in the example on the P&T website.
Is their a way to use the relationship parameter with a low variable?
(http://gotolow.com/addons/low-search/...)
Replies
Low 9 May 2013 06:57
You can either use an embed and the {exp:playa:child_ids} to get a pipe-separated list of entry ids. Something like:
And use this in the embed:
Or you could switch from Playa to the Select Entries variable type, which can save the entries as a pipe-separated list. If you then enable early parsing, you can just use this: