# controller\_admin\_edit

Source: https://zotonic.com/docs/1543/controller_admin_edit

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

Language: en



The main admin edit controller. This controller serves the edit page where [resources](/id/doc_glossary#term-resource) can be edited.

Handled events
--------------

- `rscform` and `{rscform, Args}` submit the resource edit form.
- `{view, Args}` saves the resource and opens its public page.
- `{reload_media, Opts}` refreshes the media-edit area.
- `{delete_media, Opts}` removes the resource's attached medium.
- `#sort{drop = {dragdrop, {object_sorter, Props}, ...}}` stores a reordered list of connected resources.
- `{preview, Args}` resolves the saved-content preview URL using `id` and optional `view_location`.
- `{query_preview, Opts}` renders a preview for a query resource.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1543?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/1543?language=en>)
