diff --git a/Configuration/NodeTypes.Swiper.yaml b/Configuration/NodeTypes.Swiper.yaml index e969d64..d7513d4 100644 --- a/Configuration/NodeTypes.Swiper.yaml +++ b/Configuration/NodeTypes.Swiper.yaml @@ -1,59 +1,58 @@ + 'ObisConcept.NeosSwiper:Swiper': superTypes: - 'TYPO3.Neos:Content': TRUE + 'Neos.Neos:Content': true constraints: nodeTypes: - '*': FALSE + '*': false childNodes: swiperCollection: type: 'ObisConcept.NeosSwiper:SwiperCollection' ui: label: i18n - inlineEditable: TRUE + inlineEditable: true icon: 'fa fa-exchange' - 'ObisConcept.NeosSwiper:SwiperCollection': superTypes: - 'TYPO3.Neos:ContentCollection': TRUE + 'Neos.Neos:ContentCollection': true constraints: nodeTypes: - 'ObisConcept.NeosSwiper:SwiperSlide': TRUE - '*': FALSE + 'ObisConcept.NeosSwiper:SwiperSlide': true + '*': false childNodes: slideOne: type: 'ObisConcept.NeosSwiper:SwiperSlide' - 'ObisConcept.NeosSwiper:SwiperSlide': superTypes: - 'TYPO3.Neos:Content': TRUE + 'Neos.Neos:Content': true constraints: nodeTypes: - '*': FALSE + '*': false childNodes: contentCollection: - type: 'TYPO3.Neos:ContentCollection' + type: 'Neos.Neos:ContentCollection' ui: label: i18n - inlineEditable: TRUE + inlineEditable: true icon: 'fa fa-picture-o' inspector: groups: - 'properties': + properties: label: i18n icon: 'fa fa-cog' position: 10 properties: image: - type: 'TYPO3\Media\Domain\Model\ImageInterface' + type: Neos\Media\Domain\Model\ImageInterface ui: label: i18n - reloadIfChanged: TRUE + reloadIfChanged: true inspector: - group: 'properties' + group: properties title: type: string ui: label: i18n - reloadIfChanged: TRUE + reloadIfChanged: true inspector: - group: 'properties' + group: properties diff --git a/Configuration/NodeTypes.yaml b/Configuration/NodeTypes.yaml index 0d8c888..2a92daa 100644 --- a/Configuration/NodeTypes.yaml +++ b/Configuration/NodeTypes.yaml @@ -1,4 +1,4 @@ -'TYPO3.Neos:ContentCollection': +'Neos.Neos:ContentCollection': constraints: nodeTypes: 'ObisConcept.NeosSwiper:SwiperSlide': FALSE \ No newline at end of file diff --git a/Resources/Private/TypoScript/NodeTypes/Swiper.ts2 b/Resources/Private/Fusion/NodeTypes/Swiper.fusion similarity index 54% rename from Resources/Private/TypoScript/NodeTypes/Swiper.ts2 rename to Resources/Private/Fusion/NodeTypes/Swiper.fusion index 83b6002..7578dc0 100644 --- a/Resources/Private/TypoScript/NodeTypes/Swiper.ts2 +++ b/Resources/Private/Fusion/NodeTypes/Swiper.fusion @@ -1,12 +1,12 @@ -prototype(ObisConcept.NeosSwiper:SwiperSlide) < prototype(TYPO3.Neos:Content) { +prototype(ObisConcept.NeosSwiper:SwiperSlide) < prototype(Neos.Neos:Content) { - contentCollection = TYPO3.Neos:ContentCollection { + contentCollection = Neos.Neos:ContentCollection { nodePath = 'contentCollection' } } -prototype(ObisConcept.NeosSwiper:SwiperCollection) < prototype(TYPO3.Neos:ContentCollection) { +prototype(ObisConcept.NeosSwiper:SwiperCollection) < prototype(Neos.Neos:ContentCollection) { nodePath = 'swiperCollection' @@ -18,7 +18,7 @@ prototype(ObisConcept.NeosSwiper:SwiperCollection) < prototype(TYPO3.Neos:Conten } -prototype(ObisConcept.NeosSwiper:Swiper) < prototype(TYPO3.Neos:Content) { +prototype(ObisConcept.NeosSwiper:Swiper) < prototype(Neos.Neos:Content) { templatePath = 'resource://ObisConcept.NeosSwiper/Private/Templates/NodeTypes/Swiper.html' diff --git a/Resources/Private/TypoScript/ProtoTypes/Page.ts2 b/Resources/Private/Fusion/ProtoTypes/Page.fusion similarity index 76% rename from Resources/Private/TypoScript/ProtoTypes/Page.ts2 rename to Resources/Private/Fusion/ProtoTypes/Page.fusion index b2b0f8d..f13e7e5 100644 --- a/Resources/Private/TypoScript/ProtoTypes/Page.ts2 +++ b/Resources/Private/Fusion/ProtoTypes/Page.fusion @@ -1,38 +1,38 @@ -prototype(TYPO3.Neos:Page) { +prototype(Neos.Neos:Page) { head { - swiperCss = TYPO3.TypoScript:Tag { + swiperCss = Neos.Fusion:Tag { @position = 'before stylesheets' tagName = 'link' attributes { id = 'bootstrap-css' media = 'all' rel = 'stylesheet' - href = TYPO3.TypoScript:ResourceUri { + href = Neos.Fusion:ResourceUri { path = 'resource://ObisConcept.NeosSwiper/Public/Styles/main.min.css' } } } - swiperJs = TYPO3.TypoScript:Tag { + swiperJs = Neos.Fusion:Tag { @position = 'before javascripts' tagName = 'script' attributes { id = 'bootstrap-js' type = 'text/javascript' - src = TYPO3.TypoScript:ResourceUri { + src = Neos.Fusion:ResourceUri { path = 'resource://ObisConcept.NeosSwiper/Public/JavaScript/main.min.js' } } } - swiperBackendJs = TYPO3.TypoScript:Tag { + swiperBackendJs = Neos.Fusion:Tag { @position = 'after javascripts' tagName = 'script' attributes { type = 'text/javascript' - src = TYPO3.TypoScript:ResourceUri { + src = Neos.Fusion:ResourceUri { path = 'resource://ObisConcept.NeosSwiper/Public/JavaScript/backend.min.js' } } diff --git a/Resources/Private/TypoScript/Root.ts2 b/Resources/Private/Fusion/Root.fusion similarity index 100% rename from Resources/Private/TypoScript/Root.ts2 rename to Resources/Private/Fusion/Root.fusion diff --git a/Resources/Private/Templates/NodeTypes/Swiper.html b/Resources/Private/Templates/NodeTypes/Swiper.html index 6141780..0fde22d 100644 --- a/Resources/Private/Templates/NodeTypes/Swiper.html +++ b/Resources/Private/Templates/NodeTypes/Swiper.html @@ -1,4 +1,4 @@ -{namespace ts=TYPO3\TypoScript\ViewHelpers} +{namespace ts=Neos\Fusion\ViewHelpers}
diff --git a/Resources/Private/Templates/NodeTypes/SwiperSlide.html b/Resources/Private/Templates/NodeTypes/SwiperSlide.html index 8f677ac..2ba9139 100644 --- a/Resources/Private/Templates/NodeTypes/SwiperSlide.html +++ b/Resources/Private/Templates/NodeTypes/SwiperSlide.html @@ -1,6 +1,6 @@ -{namespace neos=TYPO3\Neos\ViewHelpers} -{namespace media=TYPO3\Media\ViewHelpers} -{namespace ts=TYPO3\TypoScript\ViewHelpers} +{namespace neos=Neos\Neos\ViewHelpers} +{namespace media=Neos\Media\ViewHelpers} +{namespace ts=Neos\Fusion\ViewHelpers} @@ -47,7 +47,7 @@

{title}

- Dummy image + Dummy image diff --git a/composer.json b/composer.json index 3d1d26d..0abe829 100644 --- a/composer.json +++ b/composer.json @@ -12,10 +12,12 @@ "email": "dev@obis-concept.de" }, "description": "A Neos CMS package with a Swiper node type", - "license": ["MIT"], + "license": [ + "MIT" + ], "require": { - "neos/neos": "~3.0.0", - "neos/nodetypes": "~3.0.0" + "neos/neos": "~3.0.0", + "neos/nodetypes": "~3.0.0" }, "suggest": { "obisconcept/neos-bootstrap": "Provides jQuery which is required by the plugin", @@ -25,5 +27,10 @@ "psr-4": { "ObisConcept\\NeosSwiper\\": "Classes" } + }, + "extra": { + "applied-flow-migrations": [ + "TYPO3.FLOW3-201201261636" + ] } -} +} \ No newline at end of file