Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: remove Neos.NodeTypes package #526

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions DistributionPackages/Neos.NeosIo/Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ Neos:
- 'Neos.NodeTypes:Page'
- 'Neos.MarketPlace:RepositoryStorage'
- 'Neos.NeosIo:Reference'
translation:
autoInclude:
'Neos.NeosIo':
- 'Main'
- 'NodeTypes/*'
nodeTypes:
groups:
special:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
up:
comments: 'Migrates the old NodeTypes of the Neos.NodeTypes package too new ones.'
migration:
-
filters:
- type: 'NodeType'
settings:
nodeType: 'Neos.NodeTypes:Text'
transformations:
-
type: 'ChangeNodeType'
settings:
newType: 'Neos.NeosIo:Text'
-
filters:
- type: 'NodeType'
settings:
nodeType: 'Neos.NodeTypes:Headline'
transformations:
-
type: 'ChangeNodeType'
settings:
newType: 'Neos.NeosIo:Headline'
-
filters:
- type: 'NodeType'
settings:
nodeType: 'Neos.NodeTypes:Image'
transformations:
-
type: 'ChangeNodeType'
settings:
newType: 'Neos.NeosIo:Image'
-
filters:
- type: 'NodeType'
settings:
nodeType: 'Neos.NodeTypes.ContentReferences:ContentReferences'
transformations:
-
type: 'ChangeNodeType'
settings:
newType: 'Neos.NeosIo:ContentReferences'
-
filters:
- type: 'NodeType'
settings:
nodeType: 'Neos.NodeTypes:TextWithImage'
transformations:
-
type: 'ChangeNodeType'
settings:
newType: 'Neos.NeosIo:TextWithImage'

down:
comments: 'No down migration available'
4 changes: 2 additions & 2 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Content/Box.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
constraints:
nodeTypes:
'*': false
'Neos.NodeTypes:Text': true
'Neos.NodeTypes.ContentReferences:ContentReferences': true
'Neos.NeosIo:Text': true
'Neos.NeosIo:ContentReferences': true
'Neos.NeosIo:Button': true
'Neos.NeosIo:CountUp': true
ui:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'Neos.NeosIo:Button':
superTypes:
'Neos.Neos:Content': true
'Neos.NodeTypes:LinkMixin': true
'Neos.NeosIo:Mixins.LinkMixin': true
'Neos.NeosIo:Mixin.ButtonStyles': true
ui:
label: Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
constraints:
nodeTypes:
'*': false
'Neos.NodeTypes:Text': true
'Neos.NodeTypes:Image': true
'Neos.NodeTypes:TextWithImage': true
'Neos.NodeTypes:Headline': true
'Neos.NeosIo:Text': true
'Neos.NeosIo:Image': true
'Neos.NeosIo:TextWithImage': true
'Neos.NeosIo:Headline': true
'Neos.NodeTypes:ContentReferences': true
'Neos.NeosIo:Box': true
'Neos.NeosIo:CountUp': true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'Neos.NeosIo:ContentReferences':
superTypes:
'Neos.Neos:Content': true
'Neos.Neos:ContentCollection': true
ui:
label: 'Inhaltsreferenz'
icon: 'icon-copy'
inspector:
groups:
references:
label: 'Verweise'
icon: 'icon-copy'
properties:
references:
type: 'references'
ui:
label: Auswählen
reloadIfChanged: true
inspector:
group: 'references'
editorOptions:
nodeTypes: ['Neos.Neos:Content']
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'Neos.NeosIo:CountUp':
superTypes:
'Neos.Neos:Content': true
'Neos.NodeTypes:TextMixin': true
'Neos.NeosIo:Mixins.TextMixin': true
ui:
label: 'Detail Counter'
icon: icon-signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
constraints:
nodeTypes:
'*': false
'Neos.NodeTypes:Headline': true
'Neos.NodeTypes:Text': true
'Neos.NeosIo:Headline': true
'Neos.NeosIo:Text': true
'Neos.NeosIo:Button': true
deviceContents:
type: 'Neos.Neos:ContentCollection'
constraints:
nodeTypes:
'*': false
'Neos.NodeTypes:Image': true
'Neos.NeosIo:Image': true
'Neos.NeosIo:Youtube': true
ui:
label: 'Stage (with device media)'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'Neos.NeosIo:Headline':
superTypes:
'Neos.Neos:Content': true
'Neos.NeosIo:Mixins.TitleMixin': true
'Neos.Neos:ContentCollection': true
ui:
label: 'Headline'
icon: 'icon-header'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
constraints:
nodeTypes: null
'*': false
'Neos.NodeTypes:Headline': true
'Neos.NeosIo:Headline': true
ui:
label: 'Headline Slider'
icon: icon-font
Expand Down
7 changes: 7 additions & 0 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Content/Image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'Neos.NeosIo:Image':
superTypes:
'Neos.Neos:Content': true
'Neos.NeosIo:Mixins.ContentImageMixin': true
ui:
label: 'Image'
icon: 'icon-picture'
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Neos.NeosIo:Content.ImageGrid:
constraints:
nodeTypes:
'*': false
Neos.NodeTypes:Image: true
'Neos.NeosIo:Image': true
properties:
isDistributeEvenly:
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
'Neos.NeosIo:ImageTeaser':
superTypes:
'Neos.Neos:Content': true
'Neos.NodeTypes:TitleMixin': true
'Neos.NodeTypes:ImageMixin': true
'Neos.NodeTypes:LinkMixin': true
'Neos.NodeTypes:TextMixin': true
'Neos.NeosIo:Mixins.TitleMixin': true
'Neos.NeosIo:Mixins.ImageMixin': true
'Neos.NeosIo:Mixins.LinkMixin': true
'Neos.NeosIo:Mixins.TextMixin': true
ui:
label: 'Teaser with image'
icon: icon-th-large
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
'Neos.NodeTypes.ColumnLayouts:TwoColumn': true
'Neos.NodeTypes.ColumnLayouts:ThreeColumn': true
'Neos.NodeTypes.ColumnLayouts:FourColumn': true
'Neos.NodeTypes:Text': true
'Neos.NodeTypes:Image': true
'Neos.NeosIo:Text': true
'Neos.NeosIo:Image': true
'Neos.NodeTypes:TextWithImage': true
'Neos.NodeTypes.Html:Html': true
'Neos.NodeTypes:Headline': true
'Neos.NodeTypes.ContentReferences:ContentReferences': true
'Neos.NeosIo:Headline': true
'Neos.NeosIo:ContentReferences': true
'Neos.NeosIo:Button': true
'Neos.NeosIo:ButtonDimensionAware': true
'Neos.NeosIo:ChoiceButtons': true
Expand Down
8 changes: 4 additions & 4 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Content/Stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
'Neos.NodeTypes.ColumnLayouts:TwoColumn': true
'Neos.NodeTypes.ColumnLayouts:ThreeColumn': true
'Neos.NodeTypes.ColumnLayouts:FourColumn': true
'Neos.NodeTypes:Text': true
'Neos.NodeTypes:Image': true
'Neos.NeosIo:Text': true
'Neos.NeosIo:Image': true
'Neos.NodeTypes:TextWithImage': true
'Neos.NodeTypes:Headline': true
'Neos.NeosIo:Headline': true
'Neos.NodeTypes.Html:Html': true
'Neos.NodeTypes.ContentReferences:ContentReferences': true
'Neos.NeosIo:ContentReferences': true
'Neos.NeosIo:Box': true
'Neos.NeosIo:Button': true
'Neos.NeosIo:ButtonDimensionAware': true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'Neos.NeosIo:TeamListing':
superTypes:
'Neos.Neos:Content': true
'Neos.NodeTypes:TitleMixin': true
'Neos.NeosIo:Mixins.TitleMixin': true
ui:
label: 'Teams & Guilds'
group: plugins
Expand Down
8 changes: 8 additions & 0 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Content/Text.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'Neos.NeosIo:Text':
superTypes:
'Neos.Neos:Content': true
'Neos.NeosIo:Mixins.TextMixin': true
'Neos.Neos:ContentCollection': true
ui:
label: Text
icon: 'icon-file-text'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'Neos.NeosIo:TextWithImage':
superTypes:
'Neos.Neos:Content': true
'Neos.NeosIo:Mixins.TextMixin': true
'Neos.NeosIo:Mixins.ContentImageMixin': true
ui:
label: 'Text with Picture'
icon: 'icon-picture'
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'*': false
'Neos.NeosIo:Stage': true
'Neos.NeosIo:DeviceStage': true
'Neos.NodeTypes.ContentReferences:ContentReferences': true
'Neos.NeosIo:ContentReferences': true
'GoE.Neos:Content.Library': true
ui:
label: 'Landing page'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'Neos.NeosIo:Mixins.ContentImageMixin':
abstract: true
superTypes:
'Neos.NeosIo:Mixins.LinkMixin': true
'Neos.NeosIo:Mixins.ImageMixin': true
'Neos.NeosIo:Mixins.ImageCaptionMixin': true
'Neos.NeosIo:Mixins.ImageAlignmentMixin': true
properties:
link:
ui:
inspector:
group: 'image'
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'Neos.NeosIo:Mixins.ImageAlignmentMixin':
abstract: true
properties:
alignment:
type: string
defaultValue: ''
ui:
label: 'Alignment'
reloadIfChanged: true
inspector:
group: 'image'
position: 400
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
placeholder: 'Default'
values:
'':
label: ''
center:
label: 'Center'
left:
label: 'Left'
right:
label: 'Right'
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'Neos.NeosIo:Mixins.ImageCaptionMixin':
abstract: true
properties:
hasCaption:
type: boolean
ui:
label: 'Enable caption'
reloadIfChanged: true
inspector:
group: 'image'
position: 200
caption:
type: string
defaultValue: ''
ui:
inlineEditable: true
inline:
editorOptions:
autoparagraph: true
placeholder: 'Enter caption here'
34 changes: 34 additions & 0 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Mixins/ImageMixin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
'Neos.NeosIo:Mixins.ImageMixin':
abstract: true
ui:
inspector:
groups:
image:
label: 'Image'
position: 5
icon: 'icon-image'
properties:
image:
type: Neos\Media\Domain\Model\ImageInterface
ui:
label: 'Image'
reloadIfChanged: true
inspector:
group: 'image'
position: 50
alternativeText:
type: string
ui:
label: 'Alternative text'
reloadIfChanged: true
inspector:
group: 'image'
position: 100
title:
type: string
ui:
label: 'Title'
reloadIfChanged: true
inspector:
group: 'image'
position: 150
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
constraints:
nodeTypes:
'*': FALSE
'Neos.NodeTypes:Headline': TRUE
'Neos.NodeTypes.ContentReferences:ContentReferences': TRUE
'Neos.NeosIo:Headline': TRUE
'Neos.NeosIo:ContentReferences': TRUE
'Neos.NeosIo:ChoiceButtons': TRUE
'Neos.NeosIo:Button': TRUE
'Neos.NeosIo:HeadlineSlider': TRUE
'Neos.NodeTypes.ColumnLayouts:TwoColumn': TRUE
'Neos.NodeTypes:Image': TRUE
'Neos.NeosIo:Image': true
'GoE.Neos:Content.Video': TRUE
ui:
inspector:
Expand Down
11 changes: 11 additions & 0 deletions DistributionPackages/Neos.NeosIo/NodeTypes/Mixins/LinkMixin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'Neos.NeosIo:Mixins.LinkMixin':
abstract: true
properties:
link:
type: string
ui:
label: Link
reloadIfChanged: true
inspector:
position: 300
editor: 'Neos.Neos/Inspector/Editors/LinkEditor'
Loading