Theme structure
The layout of a post in Plate is built out of the following nested layout components.
Post
> Section
> Row
> Column
> Content Element
You can assign the following types of content to your content types in the Site dashboard. These Content Types can be extended by creating Content Fields.
- Posts (Post Type)
- Sections (Section Type)
- Elements (Element Type)
- Generic Content (Undefined Content Type)
Each kind can be selected, while Generic Content is mandatory. For example, if you enable Post Type and Element Type, it means you can create Posts and Elements with this content, provided there are theme files present in the theme.
Each type of content has it's sub folder in the root theme path:
- for Posts /posts
- for Sections /sections
- for Elements /elements
Let's say you have a Content Type Employees, which has Post Type and Element Type selected. This means you can use the following theme files:
/posts/employees/index.plate
/posts/employees/show.plate
/elements/employees/employee.plate