Skip to content

Commit

Permalink
Changed .ts2 filetype to .fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Schröder committed Feb 13, 2017
1 parent 3c24415 commit b82cb77
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 39 deletions.
35 changes: 17 additions & 18 deletions Configuration/NodeTypes.Swiper.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Configuration/NodeTypes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'TYPO3.Neos:ContentCollection':
'Neos.Neos:ContentCollection':
constraints:
nodeTypes:
'ObisConcept.NeosSwiper:SwiperSlide': FALSE
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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'

Expand Down
Original file line number Diff line number Diff line change
@@ -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'
}
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Resources/Private/Templates/NodeTypes/Swiper.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{namespace ts=TYPO3\TypoScript\ViewHelpers}
{namespace ts=Neos\Fusion\ViewHelpers}

<div id="swiper-{node.identifier}">
<div class="swiper-container">
Expand Down
8 changes: 4 additions & 4 deletions Resources/Private/Templates/NodeTypes/SwiperSlide.html
Original file line number Diff line number Diff line change
@@ -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}

<f:if condition="{image}">
<f:then>
Expand Down Expand Up @@ -47,7 +47,7 @@ <h2>{title}</h2>
</div>
</div>
</div>
<img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" class="img-responsive" />
<img src="{f:uri.resource(package: 'Neos.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" class="img-responsive" />
</div>
</f:if>
</f:else>
Expand Down
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
"email": "[email protected]"
},
"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",
Expand All @@ -25,5 +27,10 @@
"psr-4": {
"ObisConcept\\NeosSwiper\\": "Classes"
}
},
"extra": {
"applied-flow-migrations": [
"TYPO3.FLOW3-201201261636"
]
}
}
}

0 comments on commit b82cb77

Please sign in to comment.