AnsweredAssumed Answered

list of documents linked to a category in freemarker ftl

Question asked by omegerard on Apr 28, 2006
Latest reply on May 5, 2006 by kevinr
Hi,

I'm trying to extract a list of documents that are linked to a specific category in freemarker templates. I've been trying a few tricks, but the only things they produced were lots of error lines in the log file.

Now, reading through the template guide, I was fairly convinced that childrenByLuceneSearch was the API to be used. (I'm sure that childrenBySavedSearch will do the job as well, but I don't want to clutter the repository with saved searches.). The only thing is, I can't get it to work. If I do

<#list companyhome.childrenByLuceneSearch(TEXT="3MF") as doc>


or, more specifically,


<#list companyhome.childrenByLuceneSearch(PATH:"/cm:generalclassifiable//cm:D6DocType/MPR/member") as doc>

the Freemarker syntax checker appears to be unhappy. Apprently, maps cannot be "listed". But, what can be done then?

Is there anybody out there who has already played with categories in Freemarker templates?

Regards

Ludo

Outcomes