docs icon indicating copy to clipboard operation
docs copied to clipboard

Document Template hierarchy feature

Open kpodemski opened this issue 4 years ago • 2 comments

We need to document template hierarchy feature, for example you can create completely custom product page, only for selected product ID by having:

theme/your-theme/catalog/product-X.tpl

where X is ID of your product.

kpodemski avatar May 27 '21 23:05 kpodemski

We need to document template hierarchy feature, for example you can create completely custom product page, only for selected product ID

If the template being targeted is related to the identifier of the product, then it's a feature that is only usable for merchant? Module and theme developers cannot control database identifiers.

So it should not go into "Module dev guide" or "Theme developer guide" ?

matks avatar May 28 '21 07:05 matks

@matks I'd say it's for theme developers, working with merchants as an agency or something with existing stores :)

kpodemski avatar May 28 '21 07:05 kpodemski

https://devdocs.prestashop-project.org/8/themes/reference/templates/templates-layouts/

kpodemski avatar Jun 11 '23 20:06 kpodemski