Version: current

     1 <?php
     2
     3 /**
     4  * Отображение в дереве только структуры каталога
     5  *
     6  * @package Catalog
     7  * @author inxo
     8  */
     9 class CMSSiteTreeFilter_Catalog extends CMSSiteTreeFilter {
    10
    11     static function title() {
    12         return _t('Catalog.CMSSiteTreeFilter', "Только каталог");
    13     }
    14
    15     function pagesIncluded() {
    16         return DB::query('SELECT "ParentID", "ID" FROM "SiteTree" WHERE "ClassName" LIKE \'%Catalog%\'');
    17     }
    18
    19 }
    20
    21

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -