Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Cookbook
  • Cookbook recipe
  • Frontend developer
  • Template
  • Content authoring

Admin template specific things

Common markup in admin templates.

Linking to edit pages

Dispatches to edit pages is done by admin_edit_rsc.

Linking:

{% url admin_edit_rsc id=my_id %}

Redirecting:

{% button text="edit" action={redirect dispatch="admin_edit_rsc" id=my_id} %}

Further reading

  • 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… →

Related documentation

Cookbook

Add a field to the resource editor

Use an admin widget and the existing resource form.

Cookbook

Adjust the resource editor layout

Override the smallest category-specific admin component.

Cookbook

Add a custom content block

Add a plain-text callout block using current admin field names.

Cookbook

Update a preview from a selection

Validate a selection before rendering a resource preview.

Cookbook

Create a public site-map page

Render the navigation menu on a named page.

Cookbook

Add an icon to a control

Use icons from the loaded theme and keep the control accessible.

Cookbook

Read a page category in a template

Use the current resource rather than parsing its URL.

Cookbook

Share a value between template components

Pass values explicitly and keep browser code in the supported script tag.

Cookbook

Save date and time form fields

Use the form parser deliberately and distinguish it from direct property updates.

GitHub © 2026 Zotonic