XF 2.0 Whitelisting function to call from template

_PkZ_

Active member
I have extended the attachment entity and added a function.
I want to call that function from template (template-modification) but are getting an error that only whitelisted functions can be called from template.
Is there a way to whitelist or is there other ways i can call that function from my template-modification?
 
What function name are you currently using?

It needs to be a read only type name, something like getSomething, hasSomething, canSomething.

It’s only the prefix that needs to be whitelisted and most combinations are.
 
Back
Top Bottom