[Neos] How to search for a position in a string with indexOf?

Tina Eckhorst t.eckhorst at magent.de
Wed Nov 19 14:45:32 CET 2014


Hi,

I'm looking for a certain position of a substring within the URL but have problems finding the right syntax. On the page the code is shown but not executed.

I tried the following:
indexOf({neos:uri.node()}, 'angebote')
String.indexOf({neos:uri.node()}, 'angebote')
{String.indexOf({neos:uri.node()}, 'angebote')}
${String.indexOf({neos:uri.node()}, 'angebote')}


More information about the Neos mailing list