# Adjust the resource editor layout

Source: https://zotonic.com/cookbook/1594/adjust-the-resource-editor-layout

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

Language: en

Override the smallest category-specific admin component.

The resource editor uses <a href="/id/1325" class="doc-reference doc-reference-tag"><code>tag#catinclude</code></a> for `_admin_edit_main_parts.tpl` and `_admin_edit_sidebar_parts.tpl`. A category-specific override can therefore change one resource type without changing every editor screen.

1. Find the category's unique name and inspect the installed admin templates.
2. Add a matching override under the site's `priv/templates`, for example `_admin_edit_main_parts.article.tpl`.
3. Start from the current main-parts template and make the smallest change. Prefer the `_admin_edit_content_extra.tpl` extension point when you only need an extra widget.
4. Preserve the parent resource form, hidden resource ID, save wiring, translation controls and permission checks.
5. Test saving, validation errors, language switching and read-only access for that category and another category.

Do not copy an old complete `admin_edit.tpl` merely to move one widget. Such copies easily miss new publishing, access or form behaviour after an upgrade.

License: 

Attribution: 

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