dialog_edit_basics
Open a dialog to edit the “basic” information of a resource.
The basic information usually comprises of the title, the summary and the category, but what exactly is displayed as
“basic” info is dependent on the category of the resource and can be changed per
category by making a category specific template named _admin_edit_basics_form.tpl which is included using a tag#catinclude.
For instance, to create a special “basics” dialog for the category news, you would create a template called _admin_edit_basics_form.news.tpl
Arguments:
ididentifies the resource. If omitted, the action resolves it fromedge_idor from the request.edge_ididentifies an edge whose object is edited.templateselects the template used to refresh the edited item; it defaults to the category-aware_rsc_edge.tpl.update_elementselects the element refreshed after saving. By default it is the wire target;noneorwindowdisables refreshing.is_updateupdates the contents ofupdate_elementinstead of replacing the element itself.actioncan be repeated to run actions after saving.callbacknames a safe JavaScript callback receiving the resource id and title.levelis passed to the dialog template for nested editing.
{% button text="Edit title" action={dialog_edit_basics id=id update_element="card" template="_card.tpl"} %}