Просмотр исходного кода

Improve documentation for product template customization.

master
Alexander Gaevsky 8 лет назад
Родитель
Сommit
775967dcbe
1 измененных файлов: 6 добавлений и 3 удалений
  1. 6
    3
      docs/source/howto/how_to_customise_templates.rst

+ 6
- 3
docs/source/howto/how_to_customise_templates.rst Просмотреть файл

104
 Overriding individual products partials
104
 Overriding individual products partials
105
 ---------------------------------------
105
 ---------------------------------------
106
 
106
 
107
-Apart from overriding ``catalogue/partials/product.html`` to change the looks
108
-for all products, you can also override it for individual products by placing
107
+Apart from overriding ``catalogue/partials/product.html`` to change the look
108
+for all products, you can also override it for individual product by placing
109
 templates in ``catalogue/detail-for-upc-%s.html`` or
109
 templates in ``catalogue/detail-for-upc-%s.html`` or
110
-``catalogue/detail-for-class-%s.html``, where ``%s`` is the product's UPC
110
+``catalogue/detail-for-class-%s.html`` to customize look on product detail
111
+page and ``catalogue/partials/product/upc-%s.html`` or
112
+``catalogue/partials/product/class-%s.html`` to tweak product rendering by
113
+``{% render_product %}`` template tag , where ``%s`` is the product's UPC
111
 or class's slug, respectively.
114
 or class's slug, respectively.
112
 
115
 
113
 Example: Changing the analytics package
116
 Example: Changing the analytics package

Загрузка…
Отмена
Сохранить