How can I pass a dynamic value (from the database) to a function from a .ss template?
$customFunction($Value)
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
How can I pass a dynamic value (from the database) to a function from a .ss template?
$customFunction($Value)
The template parser does not support this. You will have to define another function which does not rely on a variable
So how can a funtion get a value from the database?
I have posted a related question here: