# dialog\_edit\_basics

Source: https://zotonic.com/docs/2058/dialog_edit_basics

URI: https://zotonic.com/id/2058

Language: en



Open a dialog to edit the “basic” information of a [resource](/id/doc_glossary#term-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](/id/doc_glossary#term-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 <a href="/id/doc_template_tag_tag_catinclude" class="doc-reference doc-reference-tag"><code>tag#catinclude</code></a>.

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:

- `id` identifies the resource. If omitted, the action resolves it from `edge_id` or from the request.
- `edge_id` identifies an edge whose object is edited.
- `template` selects the template used to refresh the edited item; it defaults to the category-aware `_rsc_edge.tpl`.
- `update_element` selects the element refreshed after saving. By default it is the wire target; `none` or `window` disables refreshing.
- `is_update` updates the contents of `update_element` instead of replacing the element itself.
- `action` can be repeated to run actions after saving.
- `callback` names a safe JavaScript callback receiving the resource id and title.
- `level` is passed to the dialog template for nested editing.

```django
{% button text="Edit title" action={dialog_edit_basics id=id update_element="card" template="_card.tpl"} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2058?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2058?language=en>)
