Here is my code
{exp:stash:set_list name="xxxxx" parse_tags="yes"}
{exp:channel:entries
category="{embed:category_id}"
channel="xxxxx"
disable="categories|category_fields|custom_fields|member_data|pagination"
dynamic="no"
}
{if '{exp:plugin:that_returns_some_boolean}' == 'true'}
{stash:item}
{exp:plugin:that_returns_some_value}
{/stash:item}
{/if}
{/exp:channel:entries}
{/exp:stash:set_list}
{exp:stash:get_list name="xxxxx"}
{if count == 1}
<li>
{exp:plugin:that_returns_some_string}:
{/if}
{if item}
{item}
{if count != total_results}
,
{/if}
{/if}
{if count == total_results}
</li>
{/if}
{/exp:stash:get_list}
The basic gist of this code block is to simply put some values in the Stash list based on some conditional.
My problem is that the conditional that wraps {stash:item}
doesn't seem to be respected. {stash:item}
is always appended to the list. Because of that, I see all the items outputted by {exp:stash:get_list}
as if the conditional doesn't exist.
Am I doing something wrong?