Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for default templates #479

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookbook/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ our recipes.
smart-content-data-provider
system-collections
create-new-webspace
setting-default-templates
manage-analytics
change-default-locale-provider
default-snippets
Expand Down
19 changes: 19 additions & 0 deletions cookbook/setting-default-templates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Setting the default templates
=============================

Default templates are managed within your webspace.
You can specify the template that should be used when creating a page for a specific parent.

.. code-block:: xml

<default-templates>
<default-template type="page">default</default-template>
<default-template type="home">homepage</default-template>
<default-template type="page" parent-template="members">member</default-template>
</default-templates>

.. note::

In the code above is mentioned that the parent template of template `member` is the template `members`.

When you create a page with template `members`, any sub page created will have template `member` as a default template.