- Issue created by @missclickalot
- π©πͺGermany jurgenhaas Gottmadingen
Your token
tids_list
contains a complex object with a list of data items. But the argument forwarded to the view needs to be a string. That said, you want to find a way on how to turn your list into a string that contains just the tids, separated by commas.You can either use a loop, for which you can find some examples in the ECA Guide library. Or, you may want to give the eca_tamper module a try, which provides you with an
implode
action which turns a list into a string with a given separator. Please verify you use the latest dev release for that, since we've fixed that action recently in π Implode does not work for arrays Fixed to work with more list types. Thank you @jurgenhaas β for replying to me with this information, I appreciate the help.
I'll give it a go.
- Status changed to Postponed: needs info
over 1 year ago 9:41am 30 June 2023 - πΊπΈUnited States trenttati
Thank you @jurgenhaas for recommending eca_tamper as a potential solution. I had a similar problem to solve and Tamper's implode worked perfectly within my model.
The Tamper: Impode event I set up looked like this:
eca_data: '[node:field_multi_term_ref]' eca_token_name: shared_tids glue: ','
And the output is a list of TIDs separated by commas. Providing the "shared_tids" token I created via the event to the Query View event in the Arguments field results in the view receiving the expected list of taxonomy term TIDs as contextual filters.
- Status changed to Fixed
over 1 year ago 1:46pm 3 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.