Within a loop, I need to output different info according to whether an entry is in an array of id's or not.
I currently get the id's from a query on the matrix table.
So I need something like this:
{exp:channel:entries channel="article"}
{if entry_id not in (ids)}
//some output
{if: else}
//some other output
{/if}
{/exp:channel:entries}
I can't use stash, and I can't figure how to do this with PHP/embedded templates/query tag, I think the parse order is a problem.
Here is the query I use to get the entries to filter on:
SELECT entry_id FROM exp_channel_titles
WHERE entry_id in
(SELECT `child_entry_id` FROM (`exp_playa_relationships`)
WHERE `parent_field_id` = '{embed:parent_field_id}'
ORDER BY `rel_order`)
entry_id
s? Or a few hundred out of a thousand? And what makes them special? There is almost certainly another identifier other than being in some random set ofentry_id
s.group_concat()
?{exp:playa:child_ids}
on parent template?