This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Controllers¶
By configuring a controller you can modify and enhance the way in which the built-in content view controller renders content.
You indicate which controller to use in the content view configuration, under the controller
key:
1 2 3 4 5 |
|
1 2 3 4 5 6 7 |
|
For a full example of using a custom controller, see Embed content.
If you do not want to use the default view controller and only use a custom one,
use the same configuration, but do not provide the template
key.
You have to indicate the template to use from the controller itself.
Permissions for custom controllers
See permission documentation for information about access control for custom controllers.