Fix typo
This commit is contained in:
parent
17c1926a3d
commit
e9365688ca
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ VITE_PASSWORD=your-private-password
|
|||
|
||||
### Creating a page
|
||||
|
||||
Templates are managed through Vue (`/src/views`). Thus, the process for creating new pages differs from the Kirby usual one. In addition to the **blueprint** (`/public/site/blueprints/pages/example.yml`) and **template** (`/public/site/templates/example.php`) files, it needs at least a **content representation** (`/public/site/templates/example.json.php`) and a **view component** (`/src/views/example.vue`) ones.
|
||||
Templates are managed through Vue (`/src/views`). Thus, the process for creating new pages differs from the Kirby usual one. In addition to the **blueprint** (`/public/site/blueprints/pages/example.yml`) and **template** (`/public/site/templates/example.php`) files, it needs at least a **content representation** (`/public/site/templates/example.json.php`) and a **view component** (`/src/views/Example.vue`) ones.
|
||||
|
||||
1. **Create the blueprint** as usual.
|
||||
2. **Create the corresponding template**. Distincts templates are needed, but all of them should contain this same single line of code (that you can also find in `/public/site/templates/example.php`) : `<?php snippet('generic-template') ?>`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue