diff --git a/composer.json b/composer.json index 16029b7..b9cc734 100755 --- a/composer.json +++ b/composer.json @@ -57,4 +57,4 @@ }, "prefer-stable": true, "minimum-stability": "dev" -} \ No newline at end of file +} diff --git a/site/_config.php b/site/_config.php index 6391f4b..493549d 100755 --- a/site/_config.php +++ b/site/_config.php @@ -2,6 +2,7 @@ use SilverStripe\Forms\HTMLEditor\HtmlEditorConfig; use SilverStripe\Core\Manifest\ModuleResourceLoader; +use SilverStripe\ORM\Search\FulltextSearchable; HtmlEditorConfig::get('cms')->enablePlugins([ 'template', @@ -13,3 +14,7 @@ HtmlEditorConfig::get('cms')->enablePlugins([ 'lists', 'charcount' => ModuleResourceLoader::resourceURL('drmartingonzo/ss-tinymce-charcount:client/dist/js/bundle.js'), ]); + +FulltextSearchable::enable(); + + diff --git a/site/_config/extensions.yml b/site/_config/extensions.yml index bb66b4e..072e5a5 100755 --- a/site/_config/extensions.yml +++ b/site/_config/extensions.yml @@ -1,3 +1,3 @@ SilverStripe\SiteConfig\SiteConfig: extensions: - - Site\Extensions\SiteConfigExtension \ No newline at end of file + - Site\Extensions\SiteConfigExtension diff --git a/site/client/src/js/_components/_slider.js b/site/client/src/js/_components/_slider.js new file mode 100644 index 0000000..ddbe7ef --- /dev/null +++ b/site/client/src/js/_components/_slider.js @@ -0,0 +1,51 @@ +/** + * Just an example component + */ +import $ from 'jquery'; + +const SliderUI = (($) => { + class SliderUI { + static init() { + this.each(function ($this) { + const $items = $this.find('.carousel-item'), + id = $this.attr('id'), + count = $items.length; + + if(!count){ + return; + } + + if($this.data('indicators')) { + let $controls = $('