wagtail-longclaw/docs/walkthrough/products.rst

36 wiersze
796 B
ReStructuredText
Czysty Zwykły widok Historia

2017-03-27 07:29:35 +00:00
.. _tutorial_products:
Managing the Catalogue
======================
2017-03-30 19:24:37 +00:00
Creating the Product Index
--------------------------
Wagtails' ``Page`` models are organized in a tree structure. All our ``Product`` pages will therefore
need a parent. This is the `product index`.
.. note::
Read more about Wagtail pages in the `Wagtail docs <http://docs.wagtail.io/en/v1.9/topics/pages.html>`_
Add a product index by:
- Navigate to the admin
- Select the homepage from the explorer menu
- Select ``add child page``
- Select ``Product index``
.. figure:: ../_static/images/product_index.png
We can now add ``Product``'s to the product index. Only pages of type ``Product`` can be created under ``ProductIndex``.
2017-03-27 07:29:35 +00:00
Adding a Product
----------------
Customising Variants
--------------------