Skip to content

Commit

Permalink
chore: new structure and language files for node types
Browse files Browse the repository at this point in the history
  • Loading branch information
bweinzierl committed Feb 16, 2024
1 parent d714be0 commit b506acc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@


'FormatD.HotspotEditor:Content.Hotspot':
label: "${q(node).property('hoverTitle') ? q(node).property('hoverTitle') : q(node).property('xPosition') + 'x ' + q(node).property('yPosition') + 'y'}"
superTypes:
'Neos.Neos:Content': true
ui:
group: general
label: 'Hotspot'
label: i18n
icon: icon-bullseye
inspector:
groups:
document:
label: 'Hotspot'
label: i18n
properties:
xPosition:
type: string
defaultValue: '2'
ui:
label: 'X-Position (%)'
label: i18n
reloadIfChanged: false
inspector:
group: document
Expand All @@ -26,15 +25,15 @@
type: string
defaultValue: '2'
ui:
label: 'Y-Position (%)'
label: i18n
reloadIfChanged: false
inspector:
group: document
editor: FormatD.HotspotEditor/HotspotEditor
link:
type: reference
ui:
label: 'Link'
label: i18n
reloadIfChanged: true
inspector:
group: document
Expand All @@ -44,7 +43,7 @@
hoverTitle:
type: string
ui:
label: 'Title (on hover)'
label: i18n
reloadIfChanged: true
inspector:
group: document
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


'FormatD.HotspotEditor:Mixin.HotspotCollection':
abstract: true
childNodes:
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions Resources/Private/Translations/en/NodeTypes/Content/Hotspot.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" product-name="FormatD.HotspotEditor" source-language="en" datatype="plaintext">
<body>
<trans-unit id="ui.label" xml:space="preserve">
<source>Hotspot</source>
</trans-unit>
<trans-unit id="groups.document" xml:space="preserve">
<source>Hotspot</source>
</trans-unit>
<trans-unit id="properties.xPosition" xml:space="preserve">
<source>X-Position (%)</source>
</trans-unit>
<trans-unit id="properties.yPosition" xml:space="preserve">
<source>Y-Position (%)</source>
</trans-unit>
<trans-unit id="properties.link" xml:space="preserve">
<source>Link</source>
</trans-unit>
<trans-unit id="properties.hoverTitle" xml:space="preserve">
<source>Title (on hover)</source>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit b506acc

Please sign in to comment.