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

BUGFIX: Correct node naming scheme in nodetype definition example #5426

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading