Overriding Zotonic

This chapter describes how to override the templates, styling and logic provided by Zotonic.

Overriding works by adding a site or module that has a higher priority than Zotonic’s built-in modules. In your module/site, you add templates, assets and create notification observers.

Overriding templates

Override templates by adding a template with the same name to your module/site.

Overriding assets

If you wish to fully override a CSS or JavaScript file, do so in the same way as you do templates: create a file with the same name in your module/site. Alternatively, add your own CSS file and selectively override CSS styles.

Overriding logic

Observe notifications to influence the decisions that Zotonic makes. You can change or add properties before a resource is persisted,

Writing your own module Other cookbooks Execute tasks asynchronously using the task queue

Referred by

Notifications

At different moments in the lifecycle of the web request, Zotonic sends notifications. By observing these notifications…