I want to restrict channel entries based on a pre_load variable, so I am doing this:
{preload_replace:entry_id_list="{exp:myplugin:get_entries}"}
{exp:channel:entries channel="mychannel" entry_id="{entry_id_list}" limit="10"}But this doesn’t display any entries..however, the variable {entry_id_list} does have a value (1|2) that matches he entry id.
Now, if I modify the line:
{preload_replace:entry_id_list="1|2"}it starts displaying those entries. So, is there a format difference in what the plugin function returns back to the template where function is called?