Created
May 26, 2015 19:07
-
-
Save htuscher/e5e3e8181e4a43f58ab3 to your computer and use it in GitHub Desktop.
Neos FlowQuery find node by node URI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inside the property 'pageWithSections' Neos stores a node URI like node://185e33e0-02a7-4fb9-26ab-8078d5c146fd | |
# But to select a node with FlowQuery you need an identifier like #185e33e0-02a7-4fb9-26ab-8078d5c146fd | |
navNode = ${q(site).find('#' + String.substr(q(node).property('pageWithSections'), 7)).get(0)} | |
[email protected] = ${q(node).property('pageWithSections') != NULL} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment