-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Neos.Neos:Site
NodeType should not show uriPathSegment
property
#4621
Comments
Unsetting properties is currently not possible see tests: #4620 But we could allow this see: #4618 This still has to be discussed and it might not be a good idea as @kitsunet stated:
|
@bwaidelich wrote
|
proposal from @mficzel Neos.Neos:Mixin.UriPathSegment:
properties:
uriPathSegment:
'Neos.Neos:Document':
superTypes:
Neos.Neos:Mixin.UriPathSegment: true
Neos.Neos:Site:
superTypes:
'Neos.Neos:Document': true
'Neos.Neos:Mixin.UriPathSegment': false
additionall for another time we could add a and @kitsunet noted to forbid changing inherited types -> maybe only allow to get narrower? -> new issue. |
hiding the property would possibly result in validation error as its hidden: neos/neos-ui#3549 and also its not clean to be able to set this property via php api. We came to the conclusion that unsetting supertypes is not necessary clean, but its a feature an we might as well use it for this. properties:
uriPathSegment:
ui:
inspector:
hidden: true |
Oh no. I just found out that the
this Homepage for example WILL show the uriPathSegment |
I still think it would make sense to create a new AbstractDocument or something without uriPath and add it for the regular Document or a new DocumentWithUri and Document becomes the base one, either way people would have to refactor something though. |
As removing a nodeType from the inheritance only works for the current (local) nodeType and is not further inherited, see: neos-development-collection/Neos.ContentRepository.Core/Classes/NodeType/NodeType.php Lines 176 to 180 in e7b74c6
we decided to against a mixin based solution for now. Also introducing a I will reopen my initial simpler pr which would just hide the property in the ui. #4826 and close #4828 |
We briefly discussed this in our weekly:
Actually the
uriPathSegment
property should not be part of the homepage.It would be rather nasty to remove the property from this type even though it is declared in the super type.. But I would say that this is the most pragmatic solution in this case. If the following works:
(untested!)
Otherwise we should at least disable the UI editor for this property
Originally posted by @bwaidelich in #4563 (comment)
The text was updated successfully, but these errors were encountered: