I want to create a custom Kirby Tag, but that tag needs extra data from the template controller. Is it possible to ‘add’ the return values of the template controller to the page object so i can access it within the kirbytag code?
or any other way i can get a php variable from the template code into a kirby tag?
maybe programmatically add a new ‘field’ to the page object in the template code which then will be availab to the kirbytag trough its kirbytext->field() method? can this be done?
cool. just what i needed. wonder why i did not try this before.
another solution i thought of would be to make the kirbytag create the required html code with placeholders and parse the ->kirbytext() output before rendering adding my variable where needed. like using a template language.