node_singles
Singles are node types used for one-off pages that have unique content requirements
Why?
- Singles are node types used for one-off pages that have unique content requirements, such as the homepage, an About Us page, a Contact Us page, etc.
- Unlike other node types, singles have only one node associated with them
- This concept was taken from Craft CMS
How does it work?
When adding a new node type, check the This is a content type with a single entity. checkbox under the Singles tab to mark this node type as a single.
A node of this type will automatically be created and you will not be able to create others.
Only users with the administer node singles permission will be able to delete singles.
An overview with all singles is available at /admin/content/singles for all users with the access node singles overview permission.
Terminology
The use of the word single throughout the user interface can be confusing for non-technical people not familiar with the module. Since version 3.2.0, you can change this terminology through the settings form at /admin/config/content/node-singles.
Contributing
- Tests are encouraged. This project doesn't have any test coverage yet, but contributions are welcome.
- Keep the documentation up to date. Make sure README.md and other relevant documentation is kept up to date with your changes.
- One pull request per feature. Try to keep your changes focused on solving a single problem. This will make it easier for us to review the change and easier for you to make sure you have updated the necessary tests and documentation.