Working with Content
Content Editor
Content Editor#
The dotCMS content editor is a built-in interface for managing individual units of content, also known as contentlets. Built with Angular components, the editor is sleek and responsive, with powerful tools to manage any content efficiently.
Activation#
The content editor is activated on a per-content-type basis. To activate it, browse to the content type editor (Content Model -> Content Types), open a content type, and then hit the Edit button in the upper-right corner. The content type's properties dialog will contain, near the top, a checkbox to activate the updated content editor, as displayed here:
Once that box is checked, click the Update button at the bottom of the dialog. As indicated beside the checkbox, this change can be rolled back safely at any time.
Opening the Editor#
By default, the editor opens in a slide-in panel over whatever screen you were on (such as Content Drive or a content search result), rather than taking over the full page. A control in the panel's header lets you expand it to full screen and collapse it back. Opening the editor updates the URL to a link you can bookmark or share; loading that link opens the editor directly.
The panel closes on Esc, on a click outside it, or via its close control — browser Back also closes it. If there are unsaved changes, closing shows a confirmation before discarding them.
Interface#
The editor's functions and displays are divided between two elements: a main pane and a sidebar.
Main Pane#
The central pane of the content editor permits editing of the contentlet's data, divided across the various fields that comprise the content type it represents.
The layout of these fields corresponds to the layout designed through the content type editor; e.g., multiple-column rows display horizontally adjacent fields, etc.
Similarly, tab divisions are displayed along the top bar.
Editing Images#
Binary, Image, and File fields that hold an image file expose an Edit image action, opening the built-in Image Editor tool in a dialog without leaving the content editor. Edits are not final until the contentlet itself is saved.
Command Bar#
The bar above the main pane stays sticky to the top of the editor as you scroll, and includes:
- The content's status chip (Published, Draft, Archived, etc. — see Content States).
- A Preview link, shown only for content that is a Page or has a detail page, and only once the content has been saved at least once.
- A sidebar-toggle control to show or hide the sidebar.
- An overflow (...) menu holding Permissions, Rules (pages only), and View References — actions that apply to the content as a whole rather than to its day-to-day editing.
Sidebar#
The right-hand sidebar is organized into three tabs: Actions, History, and Comments.
Actions Tab#
The Actions tab is where you lock or unlock content, run workflow actions, and review the content's metadata.
Lock and unlock. Content must be locked before it can be edited. If someone else holds the lock, a banner at the top of the viewport identifies them. If you have permission to release another user's lock, a Release Lock button appears in place of Lock, with a confirmation dialog before the lock is taken over. Without that permission, you can view the locked content but cannot run any workflow action on it. See Content States for the underlying locking behavior.
Workflow actions. All workflow actions available to the content — based on its current workflow step, each action's visibility rules, and your permissions — are listed as buttons. Running an action may keep you on the editor or return you to the content search screen, depending on how the action is configured. If the action is configured to ask for a comment, you'll be prompted for one before the action completes.
Three sections below the actions can each be collapsed or expanded independently, and remember their state the next time you open the editor:
- Locales — shows which locales the content has been translated into, and lets you switch locales or start a new translation. With five or fewer locales configured, they're listed inline grouped under Translated and Pending, each with a count and the default locale flagged. With more than five, the section instead offers a search box and an All/Translated/Pending filter. A Manage locales link (hidden unless you have access to the Languages portlet) jumps to the Languages/Locales administration screen.
- Workflow Info — the current workflow step, the workflow scheme in use, and the assignee.
- Content Details — the content type (linked to its definition), who last modified the content, and when.
The Actions tab also offers Copy Identifier, to copy the contentlet's identifier to the clipboard, and View as JSON, linking to the content's JSON representation.
History Tab#
The History tab lists every saved version of the content, each showing its exact date and time, with the version currently being previewed highlighted. Hovering a version reveals its inode and an ellipsis menu, whose options depend on that version's status:
| Version | Available options |
|---|---|
| Draft | None |
| Published | Restore, Compare |
| Older | Restore, Compare, Delete |
Selecting Compare opens a side-by-side diff against the current version; both sides always reflect the locale you were viewing. Selecting a version previews it; a Restore control in the sidebar reverts the content to that version (with confirmation), and Close returns you to the current version.
Comments Tab#
The Comments tab documents workflow actions performed on the contentlet and lets you leave comments in that history. A comment can't be sent empty — attempting to do so flags the input and blocks the send until you enter a message; Clear empties the input at any time.
Navigating Related Content#
Clicking a related contentlet — for example, from a Relationship field — opens that content's editor in place, and a Related content banner appears under the title showing the path you've taken as a breadcrumb trail (e.g., Article A › Author B). Each crumb is clickable and returns you to that content; leaving content with unsaved changes prompts for confirmation first, same as closing the editor.