This seems to work (workspace and nodetype are passed):

String query = "//element(*," + params.get("nodeType") + ")[not(MetaData/@mgnl:activated = 'true')]";

//element(*, mgnl:content)[MetaData/@mgnl:activated eq false()]

Try this, it's simpler, and works nicely in the online demo and magnolia 3.6.3. Maybe if you have an older version it can be different. I think the problem was just the fact that in xpath can be compared with the right functions (true() and false()) and NOT with true and false values that we are used to in any other environment.
Obviously you can change the nodetype if needed, this works for pages.

Greeting, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to