increase functionality of macros
Requirements
Descriptive title for this enhancement
Add possibility to call function or script inside macros
Actual behavior
I could use only internals Macro in core [[https://fusiondirectory-user-manual.readthedocs.io/en/1.4/templates/macro.html]]
Expected behavior
allow run script for validate or fill filed
Step by step description of new behaviour
Introduce a new macro like %run:script.pl|mail%
wich run a script called script.pl followed by the %mail% attribute( ex validate the mail attribute)
empty attribute could be allowed like
%run:script.pl%
inside a field which fill the fields by the return value
Benefits
- Could replace the getNextuiNumber hook
- Avoid to create a complexe check task
Possible Drawbacks
Applicable Issues
security issue ? timeout of script ?