[Neos] Use FlowQuery inside a Fizzle statement

Visay Keo visay.keo at typo3.org
Mon May 18 05:36:35 CEST 2015


Hi,

You can create a flowquery operation for that. I once took the code from 
Dmitry and slightly adjust it (see 
https://gist.github.com/visay/548a36fc250b9383526c)

Visay

On 17 ឧសភា 2015 17:52, Jan Syring-Lingenfelder wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hello Neos,
>
> I want to filter a collection of nodes by a certain property of the
> type 'reference'. So I wanted to do something like this:
>
> ..filter("[relatedPage *= " + ${q(documentNode).property('_path')} + "]")
>
> But this results in "Warning: Invalid argument supplied for foreach()
> in
> /var/www/Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes
> /TYPO3_Fluid_ViewHelpers_ForViewHelper.php line 115 "
>
> Does somebody have any advice for me?
>
> Thanks in advance
> - --
> Mit freundlichen Grüßen,
>
> Jan Syring-Lingenfelder
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJVWHLfAAoJEI3hRjrqGPdQDlUH/i1Xrb90mMIMRoSsY+2tSIBy
> RFZEgkKoZqlmuekBCacAwH4Cap+1yA2tv6X2Yi7YAtOhVTDgsqZbgu43yPMtjguH
> eqJtctlbgtk5F25TP/3rKlG/qQLVseWsDjz6GD8q+V4KVyd6UWydMybClpsXTF2l
> yZo2ZP5vZLmPXsjNASv0OVYFpnyjerO6ps30cw3HIQlpYuR8N2hS+Q6ZJwJ5v9uT
> ct932lLc8+OFnK1X02wYN7YvJVMXNYEaucGurNnpPO6bpXF95kI1546Uh25HegQW
> XLhePSwxltCWaXgLlWSIMLpgYGVZl8J1tgMir6y3Jsh1JAuSy6cC0vVRsLxZo6s=
> =CKT7
> -----END PGP SIGNATURE-----
>

-- 
TYPO3 .... Inspiring People To Share!
Participate: http://typo3.org/participate/


More information about the Neos mailing list