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.

Actions · mod_admin
  • Reference
  • Frontend developer
  • Content authoring
  • Resource
  • Wire action
  • Create

dialog_duplicate_rsc

Module

mod_admin

Open a dialog to duplicate the current resource with a new id and title.

The required id argument identifies the source resource. Submitting the dialog calls m_rsc:duplicate/3, creates the copy as unpublished, closes the dialog, and redirects to the new resource's admin edit page.

{% button text="Duplicate" action={dialog_duplicate_rsc id=id} %}

Edit on GitHub

Related documentation

Actions

dialog_new_rsc

Show the admin dialog for creating a new resource.

Actions

dialog_delete_rsc

Open a dialog to confirm the deletion of a resource.

Actions

delete_rsc

Delete a resource, without confirmation.

Actions

dialog_edit_basics

Open a dialog to edit the “basic” information of a resource.

Actions

zmedia_has_chosen

Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.

Actions

delete_media

Delete a media file from a resource, without confirmation.

Actions

dialog_predicate_new

Show a dialog for creating a new predicate.

Actions

dialog_config_new

Open a dialog to create a new configuration key/value pair.

Actions

editor_remove

Remove WYSIWYG editor controls from the textareas selected by the target. Use this before replacing or moving editor-managed markup so the…

GitHub © 2026 Zotonic