Browse recipes

Search the cookbook

45 items

Information type 5

The purpose and reading mode of a document.

Audience 3

The people for whom the content is primarily useful.

Domain 21

The functional area or content-management problem being discussed.

Architecture 13

The Zotonic component or data-model concept central to the content.

Task 4

The action a reader is trying to perform or understand.

Data type 2

The semantic kind of value accepted, transformed, validated or produced.

Technology 4

A language, protocol, format or platform materially involved in the content.

Quality 2

A cross-cutting property that the implementation or workflow should preserve.

Cookbook

Add a contact form

Choose a survey form or implement a validated server-side mail handler.

Cookbook

Add a filter or rendering component

Use a filter for a small transformation of an input value. Keep missing and unexpected values predictable, and escape output at the point where it becomes HTML.

Cookbook

Add an HTTP controller

Use controller_template when a dispatch rule only needs to render a template. Write a custom controller when the endpoint needs additional request processing or response behavior.

Cookbook

Create a reusable module

Create apps_user/zotonic_mod_garden with the following files. This example adds a discoverable module without starting an extra process.

Cookbook

Override a module template

Find the active template and its path relative to priv/templates. Create the same relative path in your site or another active module with a higher selection priority.

Cookbook

Pivot Templates

Search uses database indices on special pivot columns and full text fields.

Loading more results…