We are updating our documentation library to be ready for Sector 10! Find out more in our Sector 10 roadmap or head straight to our collection of Sector 10 - Changes and Updates.
Editing content on your site is easy, but there are a few things to keep in mind when you're editing content that is already published on a LIVE site.
The Sector Drupal 8 Starter Kit doesn't come with a preconfigured moderated content workflow - yet. This article assumes that you are working on a Sector site without Drupal workflow and moderation.
The main difference between adding new content and making changes to existing, live content on your website is that in the second case, your node is already published. Any changes you make and save will be publicly available, and your options around preview are limited.
But it's not as bad as it sounds - the WYSIWYG editor provides a good preview for your main body content while you edit it. For other changes, you can use the Drupal preview - before you click save! Sector out of the box also provides content revisions that allow you to revert your changes after you saved them.
Keen to have more control over content workflows?
We are working on a Sector add-on to deliver a preconfigured and flexible workflow using Drupal 8's core workflow and moderation modules ... coming soon! Subscribe for Sector updates to keep in the loop.
Steps in this guide
- Find the content you want to edit
- Make changes to the content
- Preview using the Drupal preview option and publish
- Something went wrong? Revert to your previous revision
Step 1 - Find the content you want to edit
To select the content to edit, you can:
- Navigate to the content in the frontend and choose the 'Edit' option in the AdminUI tabs or contextual links.
- Search for the content in the Content section of the AdminUI and use the 'Edit' button.
- <your.domain>/admin/content
Not sure how to use the Administration User Interface (AdminUI)?
See our guides on Using the Administration User Interface and Navigating the Content section of the AdminUI
Step 2 - Make changes to the content
In the node edit form, make your changes to content and settings. If you're unsure what the fields are for, see our guide on Navigating a node edit form.
Content in the 'Body' section is edited and formatted using the WYSIWYG text editor - you can read more about it at Introduction to the WYSIWYG editor.
While you make your changes, you should review and update the metadata settings and issue date, and - if you are using Sector Content Audit add-on - the content status.
Step 3 - Preview using the Drupal preview options and publish
At the bottom of the node edit form you can save and preview your content. Before you save your page as published, you can preview it - see Previewing your content for your preview options. Publish when you are ready.
Step 4 - Something went wrong? Revert to your previous revision
In Sector, all content types at set up to save changes as revisions. You can learn more about revisions in Creating and reverting revisions.
Want more guidance on adding specific content types?
Learn more in our collection Content Editing 101 - Editing content in content types