-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
!!! FEATURE: Add Neos.Neos:Site
(singular) NodeType for site nodes
#4531
Comments
Neos.Neos:Site
(singular) NodeType for site nodesNeos.Neos:Site
(singular) NodeType for site nodes
The Or better the And the |
should be refactored to use $siteNode = $subgraph->findClosestNode($node->nodeAggregateId, FindClosestNodeFilter::create(nodeTypeConstraints: 'Neos.Neos:Site'); |
Neos.Neos:Site
(singular) NodeType for site nodesNeos.Neos:Site
(singular) NodeType for site nodes
@mhsdesign you already mentoined
And don't we also have to adjust the legacy data migration? Do we expect users to migrate the old data and change the root node type configuration afterwards? Or do we inform them about the needed adjustments? |
Yes i was thinking about this too. Now the legacy migration service asserts that the site node must be of type |
Existing projects might crash while rendering the site (as we expect the but structure adjustments should find the issue:
this is ofcourse not ideal and we just need to inform everyone to add this new super type to the homepage - i do hope they have a separate nodeType for that already 🤞 |
Most on my projects don't have that 🤷♂️ |
okay i see this is definitely a case we need to take care of. Lets move the migration discussion over here: |
upgrade instructions -> #5400
@nezaniel suggested in slack
(this got actually 7 thumbs up :D)
and @kitsunet answered with
Our current way of fetching the sideNode is really not ideal or fast:
neos-development-collection/Neos.Neos/Classes/Domain/Service/SiteNodeUtility.php
Lines 40 to 57 in d9c374a
@nezaniel then i guess it would make sense to leverage #4519
findClosestNode
to write:The text was updated successfully, but these errors were encountered: