Skip to content

Commit

Permalink
Merge pull request #5426 from neos/bugfix/nodename-in-docs
Browse files Browse the repository at this point in the history
BUGFIX: Correct node naming scheme in nodetype definition example
  • Loading branch information
crydotsnake authored Jan 17, 2025
2 parents b03cca1 + 82bf843 commit fe4a481
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 fe4a481

Please sign in to comment.