Skip to content

Commit

Permalink
BUGFIX: Sort properties in raw content mode
Browse files Browse the repository at this point in the history
Previously there was no obvious sorting.
With this change the sorting option which is also used for the inspector is used to
sort the items and therefore giving an option to the integrator on their arrangement.
  • Loading branch information
Sebobo committed Mar 22, 2024
1 parent 12c5ac3 commit 14c74cf
Showing 1 changed file with 6 additions and 1 deletion.
@@ -1,7 +1,12 @@
prototype(Neos.Neos:RawContent.NodeProperties) < prototype(Neos.Fusion:Component) {
@private {
items = ${node.nodeType.properties}
items.@process.sort = ${Neos.Ui.PositionalArraySorter.sort(value, 'ui.inspector.position')}
}

renderer = afx`
<dl class="neos-raw-content-properties" @if={!String.isBlank(this.content)}>
<Neos.Fusion:Loop items={node.nodeType.properties} itemKey="propertyName" itemName="propertyConfiguration">
<Neos.Fusion:Loop items={private.items} itemKey="propertyName" itemName="propertyConfiguration">
<Neos.Neos:RawContent.NodeProperty propertyName={propertyName} propertyConfiguration={propertyConfiguration}/>
</Neos.Fusion:Loop>
</dl>
Expand Down

0 comments on commit 14c74cf

Please sign in to comment.