cancel
Showing results for 
Search instead for 
Did you mean: 

access wcm content via webscript

saurabhkt
Champ in-the-making
Champ in-the-making
Hi,
I am trying to write an Alfresco webscript that extracts wcm content from repository based on the value of a property? Will appreciate any help if you have a sample for controller (.js) and freemarker template that will accomplish this.
2 REPLIES 2

marcus
Champ in-the-making
Champ in-the-making
You first need to make sure you've got metadata extraction configured and sorted out for AVM content, so that it gets properly indexed by lucene

http://wiki.alfresco.com/wiki/Metadata_Extraction#XML_Meta-data_Extractor_Configuration_for_WCM

Then, it's just a matter of perfoming a lucene search targetting your property

saurabhkt
Champ in-the-making
Champ in-the-making
thank you..I will try this to enable lucene search.
I am still looking for some sample web script that does a search and displays the results