Where statement pdoMenu

today is not my day what am I doing wrong?

[[pdoMenu?
&parents=0
&tpl=@INLINE <a href="[[+link]]">[[+menutitle]]</a>
&tplOuter=@INLINE [[+wrapper]]
&where=["template"!="25"]
]]

I dont waant resroouce link to show if it uses template 25

is there where statement:
&where=["template":!="25"]
&where={"template":!="25"}
&where=[template!=25]

Maybe this works:

&where=`{"template:!=" : 25}`
1 Like

thats the one many thanks works

Also pdoMenu has the &templates property so you can just add a hyphen before the template to exclude:

&templates=`-25`
2 Likes

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.