Arty
Well-known member
XF/Template/Templater class cannot be extended, so the only way to add custom template tags is to write custom version of Templater class.
Custom tags require a lot of code that already exists in Templater class, but those functions are protected. Can you change protected functions to public?
In my custom tags I've needed the following functions so far that I've cloned: addToClassAttribute, assignFormControlId, processDynamicAttributes, processUnhandledAttributes.
Custom tags require a lot of code that already exists in Templater class, but those functions are protected. Can you change protected functions to public?
In my custom tags I've needed the following functions so far that I've cloned: addToClassAttribute, assignFormControlId, processDynamicAttributes, processUnhandledAttributes.
Upvote
0