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

Template display.tpl must extend page.tpl #1644

Merged
merged 3 commits into from Apr 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions modules/creation/displaying-content-in-front-office.md
Expand Up @@ -309,7 +309,10 @@ class mymoduledisplayModuleFrontController extends ModuleFrontController
- *display.tpl*

```
fabienVernieres marked this conversation as resolved.
Show resolved Hide resolved
Welcome to my shop!
{extends file='page.tpl'}
{block name='page_content'}
Welcome to my shop!
{/block}
```

Let's explore `display.php`, our first PrestaShop front-end controller,
Expand Down Expand Up @@ -391,7 +394,10 @@ in our TPL file.
- *mymodule.tpl*

```
fabienVernieres marked this conversation as resolved.
Show resolved Hide resolved
{$my_module_message}
{extends file='page.tpl'}
{block name='page_content'}
{$my_module_message}
{/block}
```

PrestaShop adds its own set of variables. For instance,
Expand Down