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

Correction of directory name for page templates in example #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion docs/themes/theme_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ page_templates.[template-filename] = "[Template display name]"
Similar to block templates, `[template-filename]` is the name of the template in `view/common/page-template` without the `.phtml` file extension, while `[Template display name]` is what appears in the page builder interface where the user selects the page template.

!!! Example
For a page template that provides custom markup for a javascript timeline, you could create a file at `view/common/page-templates/js-timeline.phtml`. In the `theme.ini`, you would register it by including `page_templates.js-timeline = "Javascript timeline"`.
For a page template that provides custom markup for a javascript timeline, you could create a file at `view/common/page-template/js-timeline.phtml`. In the `theme.ini`, you would register it by including `page_templates.js-timeline = "Javascript timeline"`.