mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Minor updates
This commit is contained in:
parent
a4a10098c4
commit
c0d3d6fafa
@ -44,6 +44,10 @@ SilverStripe\CMS\Model\SiteTree:
|
|||||||
- Site\Elements\MapElement
|
- Site\Elements\MapElement
|
||||||
#- Site\Elements\AccordionElement
|
#- Site\Elements\AccordionElement
|
||||||
- DNADesign\ElementalVirtual\Model\ElementVirtual
|
- DNADesign\ElementalVirtual\Model\ElementVirtual
|
||||||
|
- Site\Elements\ColorBarElement
|
||||||
|
- Site\Elements\AccordionElement
|
||||||
|
- Site\Elements\VideoElement
|
||||||
|
- Site\Elements\GalleryElement
|
||||||
|
|
||||||
DNADesign\ElementalList\Model\ElementList:
|
DNADesign\ElementalList\Model\ElementList:
|
||||||
inline_editable: false
|
inline_editable: false
|
||||||
@ -60,11 +64,16 @@ DNADesign\ElementalList\Model\ElementList:
|
|||||||
- Site\Elements\SliderElement
|
- Site\Elements\SliderElement
|
||||||
- Site\Elements\BlockElement
|
- Site\Elements\BlockElement
|
||||||
- Site\Elements\MapElement
|
- Site\Elements\MapElement
|
||||||
|
- Site\Elements\ColorBarElement
|
||||||
|
- Site\Elements\AccordionElement
|
||||||
styles:
|
styles:
|
||||||
whiteframe: 'White Frame'
|
whiteframe: 'White Frame'
|
||||||
greybg: 'Grey Background'
|
|
||||||
noframe: 'No Frame'
|
noframe: 'No Frame'
|
||||||
|
|
||||||
|
Site\Elements\AccordionElement:
|
||||||
|
allowed_elements:
|
||||||
|
- DNADesign\Elemental\Models\ElementContent
|
||||||
|
|
||||||
DNADesign\Elemental\Models\ElementContent:
|
DNADesign\Elemental\Models\ElementContent:
|
||||||
default_global_elements: false
|
default_global_elements: false
|
||||||
inline_editable: false
|
inline_editable: false
|
||||||
|
@ -11,6 +11,7 @@ SilverStripe\SiteConfig\SiteConfig:
|
|||||||
extensions:
|
extensions:
|
||||||
- Site\Extensions\SocialExtension
|
- Site\Extensions\SocialExtension
|
||||||
- Site\Extensions\SiteConfigExtension
|
- Site\Extensions\SiteConfigExtension
|
||||||
|
- Site\Extensions\NotificationsExtension
|
||||||
|
|
||||||
SilverStripe\CMS\Model\SiteTree:
|
SilverStripe\CMS\Model\SiteTree:
|
||||||
extensions:
|
extensions:
|
||||||
@ -20,6 +21,10 @@ Sheadawson\Linkable\Models\EmbeddedObject:
|
|||||||
extensions:
|
extensions:
|
||||||
- Site\Extensions\EmbeddedObjectExtension
|
- Site\Extensions\EmbeddedObjectExtension
|
||||||
|
|
||||||
|
SilverStripe\Assets:
|
||||||
|
extensions:
|
||||||
|
- Site\Extensions\ImageExtension
|
||||||
|
|
||||||
Dynamic\FlexSlider\Model\SlideImage:
|
Dynamic\FlexSlider\Model\SlideImage:
|
||||||
extensions:
|
extensions:
|
||||||
- Site\Extensions\SlideImageExtension
|
- Site\Extensions\SlideImageExtension
|
||||||
|
@ -16,6 +16,7 @@ use SilverStripe\Forms\DropdownField;
|
|||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\ORM\DataExtension;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
use SilverStripe\Forms\LiteralField;
|
use SilverStripe\Forms\LiteralField;
|
||||||
|
use Site\Elements\AccordionElement;
|
||||||
|
|
||||||
class ElementRows extends DataExtension
|
class ElementRows extends DataExtension
|
||||||
{
|
{
|
||||||
@ -140,7 +141,7 @@ class ElementRows extends DataExtension
|
|||||||
|
|
||||||
public function isList()
|
public function isList()
|
||||||
{
|
{
|
||||||
return is_a($this->owner, ElementList::class);
|
return is_a($this->owner, ElementList::class) && !is_a($this->owner, AccordionElement::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isRow()
|
public function isRow()
|
||||||
|
23
app/src/Extensions/ImageExtension.php
Normal file
23
app/src/Extensions/ImageExtension.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Site\Extensions;
|
||||||
|
|
||||||
|
use SilverStripe\Forms\CheckboxField;
|
||||||
|
use SilverStripe\Forms\FieldList;
|
||||||
|
use SilverStripe\Forms\NumericField;
|
||||||
|
use SilverStripe\Forms\TextareaField;
|
||||||
|
use SilverStripe\Forms\TextField;
|
||||||
|
use SilverStripe\ORM\DataExtension;
|
||||||
|
|
||||||
|
class ImageExtension extends DataExtension
|
||||||
|
{
|
||||||
|
public function updateCMSFields(FieldList $fields)
|
||||||
|
{
|
||||||
|
parent::updateCMSFields($fields);
|
||||||
|
|
||||||
|
/*$fields->removeByName([
|
||||||
|
'Filename',
|
||||||
|
]);*/
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user