@@ -13,7 +13,7 @@ by the [jstree](https://jstree.com) library. It is configured through
13
13
` client/src/legacy/LeftAndMain.Tree.js ` in the ` silverstripe/admin ` module, as well as some
14
14
HTML5 metadata generated on its container (see the ` data-hints ` attribute).
15
15
16
- The tree is rendered through [ LeftAndMain::getSiteTreeFor ()] ( api:SilverStripe\Admin\LeftAndMain::getSiteTreeFor () ) ,
16
+ The tree is rendered through [ LeftAndMain::getTreeFor ()] ( api:SilverStripe\Admin\LeftAndMain::getTreeFor () ) ,
17
17
which recursively collects all nodes based on various filtering criteria.
18
18
The node strictly just has to implement the [ Hierarchy] ( api:SilverStripe\ORM\Hierarchy\Hierarchy ) extension,
19
19
but in the CMS usually is a [ SiteTree] ( api:SilverStripe\CMS\Model\SiteTree ) object.
@@ -36,7 +36,7 @@ code like this:
36
36
<ins class="jstree-checkbox"> </ins>
37
37
<ins class="jstree-icon"> </ins>
38
38
<span class="text">
39
- <span class="jstree-pageicon "></span>
39
+ <span class="jstree-recordicon "></span>
40
40
<span class="item" title="Deleted">New Page</span>
41
41
<span class="badge deletedonlive">Deleted</span>
42
42
</span>
@@ -57,8 +57,8 @@ Each flag has a unique identifier, which is also used as a CSS class for easier
57
57
Developers can easily add a new flag, delete or alter an existing flag on how it is looked
58
58
or changing the flag label. The customization of these lozenges could be done either through
59
59
inherited subclass or [ Extension] ( api:SilverStripe\Core\Extension ) . It is just really about how we change the return
60
- value of function ` SiteTree->getTreeTitle ()` by two easily extendable methods
61
- ` SiteTree->getStatusClass ()` and ` SiteTree-> getStatusFlags()` .
60
+ value of function ` CMSMain::getRecordTreeMarkup ()` by two easily extendable methods
61
+ ` Hierarchy::getTreeTitle ()` and ` ModelData:: getStatusFlags()` .
62
62
63
63
Note: Though the flag is not necessarily tie to its status of ** publication** and it could
64
64
be used for flagging anything you like, we should keep this lozenge to show version-related
@@ -109,7 +109,7 @@ use Page;
109
109
110
110
class HomePage extends Page
111
111
{
112
- private static $icon_class = 'font-icon-p-home';
112
+ private static $cms_icon_class = 'font-icon-p-home';
113
113
114
114
// ...
115
115
}
0 commit comments