Git Product home page Git Product logo

Comments (5)

mhsdesign avatar mhsdesign commented on July 17, 2024 1

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 => -

from rector.

dlubitz avatar dlubitz commented on July 17, 2024

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

from rector.

dlubitz avatar dlubitz commented on July 17, 2024

So this might also be outdated, right?

https://github.com/neos/rector/blob/2f46e9ccff3fb2513030d145f8b162ac79f99623/tests/ContentRepository90/Rules/NodeIsHiddenInIndexRector/Fixture/some_class.php.inc

from rector.

mhsdesign avatar mhsdesign commented on July 17, 2024

Yes Idk what that is supposed to do 😂

we want to get rid of _* not add it

from rector.

dlubitz avatar dlubitz commented on July 17, 2024

Hmm, but it's actually the current implementation:
https://github.com/neos/neos-development-collection/blob/9cd8c4f790955a4d69e7e4baa59a35d5b434e422/Neos.Neos/NodeTypes/Mixin/Document.yaml#L74-L74

from rector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.