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

warn about q(node).property('_path') and ${node.path} (the latter wont work either way) #34

Closed
Tracked by #25
dlubitz opened this issue Oct 23, 2023 · 5 comments · Fixed by #39
Closed
Tracked by #25

Comments

@dlubitz
Copy link
Contributor

dlubitz commented Oct 23, 2023

No description provided.

@dlubitz dlubitz mentioned this issue Oct 23, 2023
9 tasks
@dlubitz
Copy link
Contributor Author

dlubitz commented Oct 23, 2023

@mhsdesign Can you provide me replacement or at least what you like to warn about in this cases?

@mhsdesign
Copy link
Member

mhsdesign commented Oct 23, 2023

Hi ;)

There seems to be the \Neos\Neos\Fusion\Helper\NodeHelper::path function that can be used.

In preparation to neos/neos-development-collection#4208 we should migrate all pre 9.0 ways of accessing member fields on the node

I don't know if all those case must be migrated, but i took the list of node properties from neos/neos-development-collection#4208 (comment) (generated via reflection) and took the ones which most likely could have been used:

q(node).property('_autoCreated'), node.autoCreated => node.classification.tethered
q(node).property('_contextPath'), node.contextPath => Neos.Node.serializedNodeAddress(node)
q(node).property('_depth'), node.depth => Neos.Node.depth(node)
q(node).property('_identifier'), node.identifier => node.nodeAggregateId.value
q(node).property('_label') => node.label
q(node).property('_name'), node.name => node.nodeName.value
q(node).property('_nodeType') => node.nodeType
q(node).property('_parent'), node.parent => q(node).parent().get(0)
q(node).property('_path'), node.path => Neos.Node.path(node)
q(node).property('_hiddenInIndex'), node.hiddenInIndex => node.properties._hiddenInIndex
q(node).property('_dimensions'), node.dimensions => ???
q(node).property('_hidden'), node.hidden => ???
q(node).property('_index'), node.index => ???
q(node).property('_workspace'), node.workspace => ???
q(node).property('_hiddenBeforeDateTime'), node.hiddenBeforeDateTime => -
q(node).property('_hiddenAfterDateTime'), node.hiddenAfterDateTime => -

@dlubitz
Copy link
Contributor Author

dlubitz commented Oct 23, 2023

@mhsdesign
Copy link
Member

Yes Idk what that is supposed to do 😂

we want to get rid of _* not add it

@dlubitz
Copy link
Contributor Author

dlubitz commented Oct 24, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants