cancel
Showing results for 
Search instead for 
Did you mean: 

Correct Location for content in WCM

steventux
Champ in-the-making
Champ in-the-making
Hi all
I have a WCM Web Project primarily used for producing editorial content, reports, articles a homepage and some index pages, all very basic so far.
I'd like to know where this sort of content is best placed in Alfresco. The WCM tutorial I've been following gives the Company Footer and Press Release examples but these pieces of content are stored under the webapp root, which isn't a real space and so I cant use some of the space/node traversal techniques (e.g in a web script) to find my content. So far both my XML data files and renditions have been written somewhere under the webapp. Obviously the renditions have to be present here for project deployment otherwise there's nothing to deploy, but it seems like this approach doesn't give me much use of the Alfresco repository, its just WCM creating and pushing content. Would I be better to place XML data in the repository so say my delivery app can at least query this or do node lookup and then template this data on delivery?
Any pointers most welcome.
3 REPLIES 3

steventux
Champ in-the-making
Champ in-the-making
Having RTFM http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Output_Path_Patterns_.28Web_Forms_only.29 this seems to conclude that WCM content can only be created in the Web Project. I'm having problems with this as the Web Project directories are not repository spaces which means a lot of repository script functionality is redundant. Someone please put me straight about this.

So my questions are…
Are the folders in a Web Project traversable via the freemarker or XSL mechanisms described in tutorials and dev guides?
Likewise are they searchable with lucene?
If it's no to both, it seems to me the WCM Web Project mutes a lot of the CMS functionality in Alfresco?
Speak your brains.

mbrevoort
Champ in-the-making
Champ in-the-making
Steve,

I've been watching for responses to your questions as I'm trying to sift through the differences between the DM content modeling and WCM and just what's what in terms of WCM.

I'm still an Alfresco newbie, for lack of a better word, but I can at least say that web projects are searchable via Lucene.  I am able to search web project content in a webscript and render the results back as XML.  For example:

var store = avm.lookupStore("mikepoc");
var results = store.luceneSearch("TEXT:\"articleSmiley Tongueerson\"");
var persons= new XML();
persons= <persons></persons>
for (var i=0, len=results.length; i<len; ++i){
   var str = new String(results.content);
   str = str.substr(38, str.length - 1 );   // Note: assumes UTF-8 encoding for all XML documents
   var person= new XML(str);
   persons.person= religion;
}
model.persons= persons.toXMLString();

Hopefully someone else is willing to address the other questions.

Mike

steventux
Champ in-the-making
Champ in-the-making
Hey thanks for the reply, it prompted me to take another look at the web script examples and sure enough you can navigate the avm_webapp and search it using lucene.  Smiley Very Happy