Skip to content

Instantly share code, notes, and snippets.

@htuscher
Created May 26, 2015 19:07
Show Gist options
  • Save htuscher/e5e3e8181e4a43f58ab3 to your computer and use it in GitHub Desktop.
Save htuscher/e5e3e8181e4a43f58ab3 to your computer and use it in GitHub Desktop.
Neos FlowQuery find node by node URI
# 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