Update template annotations

This commit is contained in:
Sonja Broda
2019-07-28 16:03:52 +02:00
parent aada11ac43
commit 65938de7d2
7 changed files with 14 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* This example templates only echos the field values from the content file and doesn't need any special logic from a controller. * This example templates only echos the field values from the content file and doesn't need any special logic from a controller.
* Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* This example template makes use of the `$gallery` variable defined in the `album.php` controller * This example template makes use of the `$gallery` variable defined in the `album.php` controller
* and the `cover()` method defined in the `album.php` page model. * and the `cover()` method defined in the `album.php` page model.
* Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean.

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`. *
* This default template must not be removed. It is used whenever Kirby cannot find a template with the name of the content file. * This default template must not be removed. It is used whenever Kirby cannot find a template with the name of the content file.
* Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* This home template renders content from others pages, the children of the `photography` page to display a nice gallery grid. * This home template renders content from others pages, the children of the `photography` page to display a nice gallery grid.
* Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics

View File

@@ -3,6 +3,8 @@
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* This template is responsible for rendering all the subpages of the `notes` page. * This template is responsible for rendering all the subpages of the `notes` page.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header and footer contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics
*/ */

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* This template lists all all the subpages of the `notes` page with their title date sorted by date and links to each subpage. * This template lists all all the subpages of the `notes` page with their title date sorted by date and links to each subpage.
* Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics

View File

@@ -2,6 +2,8 @@
/** /**
* Templates render the content of your pages. * Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements. * They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`.
* This template lists all all the subpages of the `phototography` page with title and cover image. * This template lists all all the subpages of the `phototography` page with title and cover image.
* Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean. * Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics * More about templates: https://getkirby.com/docs/guide/templates/basics