Hi all...
I need to retrieve all "green", "yellow" and "red" content nodes for a
given workspace. I mean the activation status.
For "red" ones (NOT_ACTIVATED) I maange with this query:
*****
String query = "//element(*,mgnl:content)[not(MetaData/@mgnl:activated =
'true')]
*****
But how can I do for yellow and green ones? mgnl:activated is true for
both cases, I see that I need to select
for yellow = content with mgnl:lastmodified > mgnl:lastaction and
mgnl:activated = true
for yellow = content with mgnl:lastmodified = mgnl:lastaction and
mgnl:activated = true
I've tried something like
//element(*,nt:base)[MetaData/@mgnl:lastmodified >
MetaData/@mgnl:lastaction]
but without success...
I would like to avoid generic queries and then woriking on resultsets
(Content.getMetadata()...), to speed-up the procedure.
Thanks for your help, again..
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------