Skip to content

Commit

Permalink
Update customization.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed May 10, 2019
1 parent fad5423 commit 0428d85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ or god knows what else.
*django-sitetree* can facilitate on that as it allows tree handler customization
with the help of `SITETREE_CLS` setting.

1. Subclass `sitetreeapp.SiteTree` and place that class into a separate module for convenience.
2. Override methods you need for customization (usually `.apply_hook()`).
3. Define `SITETREE_CLS` in `settings.py` of your project, showing it a dotted path to subclass.
1. Subclass ``sitetreeapp.SiteTree`` and place that class into a separate module for convenience.
2. You may now overwrite ``.apply_hook()`` to manipulate tree items before render, or any other methods to customize handler to your exact needs.
3. Define ``SITETREE_CLS`` in ``settings.py`` of your project, showing it a dotted path to subclass.


Example:
Expand Down

0 comments on commit 0428d85

Please sign in to comment.