View helper namespaces should be configurable
Currently custom view helper namespaces can be defined in the templates like
IMO it would be great to be able to configure the namespace in your package/extension configurations. That way you could easily replace custom or even fluid view helpers with your own implementation without touching the original package/extension.
Maybe we could even implement a fallback mechanism:
MyPackage: fluid: namespaces: f: F3\MyOtherPackage\ViewHelpers F3\Fluid\ViewHelpers blog: F3\MyOtherPackage\ViewHelpers
<f:link.action /> would try to instantiate
\F3\MyOtherPackage\ViewHelpers\Link\ActionViewHelper.php and if nout found use
If that fallback mechanism is too complex, it might be a possibility to override only single view helpers..
AFAIK, in FLOW3 this is already possible by adding something like
F3\Fluid\ViewHelpers\Link\ActionViewHelper: className: F3\MyOtherPackage\ViewHelpers\Link\ActionViewHelper
Objects.yaml. But I'm not sure if that would be the right approach here..