Implemented: Ini settings based custom template operator configuration #2
One aspect to this extension that has always bothered our developers is the need to edit or customize the extension/OWSimpleOperator/autoloads/eztemplateautoload.php file to add custom template operator functions. (As instructed in the documentation)
By comparison in our other custom template operator extension, wrapoperator we do not have to customize any core extension php files to add user defined template operator functions, instead we have settings based configuration for this need: https://github.com/brookinsconsulting/wrapoperator/blob/master/settings/wrapoperator.ini#L11
We have taken the time to introduce ini settings based custom template operator configuration into the OWSimpleOperator extension.
With our changes in place you can define custom template operator functions via ini settings. This means you can leave the core php files of the OWSimpleOperator alone / stock / as default.
To add a custom template operator function just edit the owsimpleoperator.ini.append.php template override say in settings/override/owsimpleoperator.ini.append.php file and add the template operator file path (ezp4 compat), template operator class name and template operator class method name configuration settings you desire. Then clear ini caches and you can use your custom template operator right away! No more hacking of core extension php files like extension/OWSimpleOperator/autoloads/eztemplateautoload.php which can't be overriden with class based overrides.
Please let us know what you think of this new feature! We think it's great for all users of this extension! Especially in multi site configurations.