Templates
Page have templates. A typical page template will have some static content (logos and so on) as well as some dynamic content that will be used by all pages using the template - such as the site menu. Usually, these templates have regions which contain user-managed components - blocks of content. However, this is not required. A template for a carefully crafted landing page may have no regions.
When a page tempate does have regions (or 'content slots'), then the Textsten CMS will allow admin users to add content here using Page Components.
Page Components
Components are a way of attaching content to pages. There are a variety of components that are available, ranging from simple 'html' blocks through to dynamic components (for list/detail) or generative content.
To attach some content to a page, click the "add" button in the the region in the page you wish to add content to:
This will open the component drawer. Select the copmponent you wish to add to the page.
There are many different components available, usually customised for your site and its front-end stack (ie depending on whether your site uses tailiwind, rect, vue, alpine, etc). Common components include:
- article
- banner
- heading
- image
- imagecollection
- markdown
- prose
- spacer
Adding a component to a page, or clicking on it after it has loaded, brings up the component editor which you may see some attributes. For example, adding the banner component brings up the following component editor which allows me to set the layout (template) to be used, the banner title and the images to be used.