mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
commit
8b0bcd93e8
@ -1,4 +1,4 @@
|
|||||||
# How to customize the CMS tree #
|
# How to customize the CMS tree
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ which recursively collects all nodes based on various filtering criteria.
|
|||||||
The node strictly just has to implement the `[api:Hierarchy]` extension,
|
The node strictly just has to implement the `[api:Hierarchy]` extension,
|
||||||
but in the CMS usually is a `[api:SiteTree]` object.
|
but in the CMS usually is a `[api:SiteTree]` object.
|
||||||
|
|
||||||
## Add status lozenges to tree nodes ##
|
## Add status lozenges to tree nodes
|
||||||
|
|
||||||
A tree node in CMS could be rendered with lot of extra information but a node title, such as a
|
A tree node in CMS could be rendered with lot of extra information but a node title, such as a
|
||||||
link that wraps around the node title, a node's id which is given as id attribute of the node
|
link that wraps around the node title, a node's id which is given as id attribute of the node
|
||||||
@ -58,7 +58,7 @@ be used for flagging anything you like, we should keep this lozenge to show vers
|
|||||||
status, while let `SiteTree->CMSTreeClasses()` to deal with other customised classes, which
|
status, while let `SiteTree->CMSTreeClasses()` to deal with other customised classes, which
|
||||||
will be used for the class attribute of <li> tag of the tree node.
|
will be used for the class attribute of <li> tag of the tree node.
|
||||||
|
|
||||||
### Add new flag ###
|
### Add new flag
|
||||||
__Example: using a subclass__
|
__Example: using a subclass__
|
||||||
|
|
||||||
:::php
|
:::php
|
||||||
|
Loading…
Reference in New Issue
Block a user