cancel
Showing results for 
Search instead for 
Did you mean: 

Re:query a content in WCM using property in XSD

lakshmi
Champ in-the-making
Champ in-the-making
Hi all,

I have defined my own xsd. In my xsd i have a property called effectivity.
I want to set up content expiry , for this i use scheduled-jobs.xml to run a job. I use moveAction. The problem is i do not know how to query content in Web proj based on my 'effectivity' property defined in xsd.

For content oustide web project i use cm:effectivity aspect and the query template as this

<property name="queryTemplate">
           <value>@cm\:to:${luceneDateRange(today,today)}</value>
        </property>

Help me how to implement this for contents inside web projects….

Thanks,
Lakshmi
1 REPLY 1

kvc
Champ in-the-making
Champ in-the-making
You have to extract the content within your XML and set as a metadata attribute to be included in the Lucene search indexes for your query to work.

XML metadata extraction will be available in our updated Community release, 2.1 Community RC2, later this week.  There is also a Forge project for accomplishing the same thing, which you can find here:

http://forge.alfresco.com/projects/wcm-metadata/

Kevin