[Neos] Get node by url path segment

Sokly Phal sokly at web-essentials.asia
Thu Mar 26 10:18:28 CET 2015


I got solution now.
Here is the working code:

getNode = ${q(site).find('[instanceof 
TYPO3.Neos:Document]').filter('myurl').get(0)}

Thank Sebastian Helzle for your help. :)

Cheer,
Sokly

On 26 មិនា 2015 09:59, Sokly Phal wrote:
> Hi list,
>
> I don't know how to write flow query to get node by url path segment.
>
> I have tried this
>
> getNode = ${q(site).find('[instanceof
> TYPO3.Neos:Document]').find('myurl').get(0)}
>
> but it can get only second level and third level, first not.
>
> Any idea?
>
> Thanks in advance for your help.
>
> Best,
> Sokly


More information about the Neos mailing list