is it possible to send the result of a kirbytext filter (eg an array) to a page controller?
my use case is to scan the text of the page, collect all values inside a specific html tag and print those values in the sidebar of the page (and then do other things…).
with the approach you showed and by reading the code, am i wrong or i can simply output the array list in the template as-is? eg without deciding how to use it inside the template file? or is there a way to pass it as an argument to the template?
in the adapted page-method for the structured i took out ->text()->raw() since $tx->text() in the template it’s already printing the raw text version (eg the markdown).
i think though it’s not working because i’m using the $page object and with a structured field it’s different?
i realised i can just move the code in page-method inside the template / snippet since it’s a one-off thing and i probably will avoid the page-method limitation problem