Matteo Pelucco ha scritto:
Ralf Hirning ha scritto:
Hi Matteo,
try XPath query:
//element(*,mgnl:content)[jcr:contains(MetaData/@mgnl:activated,'false')]
Ralf
It retrieves 0 results, allways...
The problem, I think, is that MetaData is a node of type = mgnl:metaData
whereas content nodes has different types (from mgnl:content to
datatype-x if I use data module).
This seems to work (workspace and nodetype are passed):
String query = "//element(*," + params.get("nodeType") +
")[not(MetaData/@mgnl:activated = 'true')]";
Collection<Content> foundContent =
QueryUtil.query(params.get("workspace"), query, "xpath",
params.get("nodeType"));
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------