0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

moar docs

This commit is contained in:
Jeffrey Hearn 2014-05-07 14:35:38 -04:00
parent 1bd49f85e1
commit b614781e9c

View File

@ -82,7 +82,7 @@ Parents
```````
Parent nodes on the Wagtail tree probably want to organize and display a browsable index of their descendents. A blog, for instance, needs a way to show a list of individual posts.
A Parent node could provide its own function returning its descendant objects. ::
A Parent node could provide its own function returning its descendant objects. :: python
class EventPageIndex(Page):
...
@ -102,7 +102,7 @@ Leaves are the pieces of content itself, a page which is consumable, and might j
It might be helpful for a leaf to provide a way to back up along the tree to a parent, such as in the case of breadcrumbs navigation. The tree might also be deep enough that a leaf's parent won't be included in general site navigation.
The model for the leaf could provide a function that traverses the tree in the opposite direction and returns an appropriate ancestor.::
The model for the leaf could provide a function that traverses the tree in the opposite direction and returns an appropriate ancestor. :: python
class BlogPage(Page):
...