mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: Move features from silverstripe-webpack repo
This commit is contained in:
parent
da2ffc2a6a
commit
16e9101629
@ -16,6 +16,7 @@ use SilverStripe\Forms\DropdownField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use A2nt\ElementalBasics\Elements\AccordionElement;
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
|
||||
/**
|
||||
* Class \A2nt\ElementalBasics\Extensions\ElementRows
|
||||
@ -48,7 +49,7 @@ class ElementRows extends DataExtension
|
||||
$fields->removeByName(['AvailableGlobally', 'TopPageLocale', 'TopPageID']);
|
||||
//$fields->removeByName('SidebarOnly');
|
||||
|
||||
// move available globaly to main tab
|
||||
// move available globaly to main tab
|
||||
$tab = $fields->findOrMakeTab('Root.Main');
|
||||
$tab->push(CheckboxField::create('AvailableGlobally'));
|
||||
//$tab->push(CheckboxField::create('SidebarOnly', 'Hidden (Sidebar Only)'));
|
||||
@ -267,10 +268,10 @@ class ElementRows extends DataExtension
|
||||
public function ContainerClass()
|
||||
{
|
||||
$type = $this->owner->getField('ContainerType');
|
||||
$container_styles = array_keys(self::$container_styles);
|
||||
//$container_styles = array_keys(self::$container_styles);
|
||||
|
||||
if (!$type && $this->isRoot()) {
|
||||
$type = \Page::DefaultContainer();
|
||||
$type = Config::inst()->get(SiteTree::class, 'default_container_class');
|
||||
}
|
||||
|
||||
return $type;
|
||||
|
Loading…
Reference in New Issue
Block a user