Skip to content

Commit

Permalink
BUGFIX: Correct node naming scheme in nodetype definition example
Browse files Browse the repository at this point in the history
The example uses an outdated camelcase variant for node names.
  • Loading branch information
Sebobo committed Jan 13, 2025
1 parent b03cca1 commit 82bf843
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Neos.Neos/Documentation/References/NodeTypeDefinition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NodeType Definition Reference
=============================

THe manual to understand NodeType definitions can be found in the Neos Docs (https://docs.neos.io/cms/manual/content-repository/nodetype-definition).
The manual to understand NodeType definitions can be found in the Neos Docs (https://docs.neos.io/cms/manual/content-repository/nodetype-definition).

The following options are allowed for defining a NodeType:

Expand Down Expand Up @@ -55,7 +55,7 @@ The following options are allowed for defining a NodeType:
Here is an example::

childNodes:
someChild:
'some-child':
type: 'Neos.Neos:ContentCollection'
constraints:
nodeTypes:
Expand All @@ -68,11 +68,11 @@ The following options are allowed for defining a NodeType:

'Neos.NodeTypes:Page':
childNodes:
'someChild':
'some-child':
type: 'Neos.Neos:ContentCollection'
position: 'before main'

This adds a new ContentCollection called someChild to the default page.
This adds a new ContentCollection called ``some-child`` to the default page.
It will be positioned before the main ContentCollection that the default page has.
The position setting follows the same sorting logic used in Fusion
(see the :ref:`neos-fusion-reference`).
Expand Down

0 comments on commit 82bf843

Please sign in to comment.