09-04-2008 04:33 AM
<#list companyhome.childByNamePath("User Homes/This Is The Space") as node>
<tr>
<td>${node.id}</td>
</tr>
</#list>
Which results in the following error:freemarker.template.TemplateException - Expected method. companyhome.childByNamePath evaluated instead to freemarker.template.SimpleHash on …
<#list companyhome.childrenByXPath["*//*[@cm:name='This Is The Space]"] as child>
<tr><td><img src="/alfresco${child.icon16}"> ${child.properties.name}</td></tr>
</#list>
[/code]
… also to no avail. So I've tested the (downgraded) example from the wiki:
[code]
<table>
<#list companyhome.childrenByXPath["*[@cm:name='Data Dictionary']/*"] as child>
<#if child.isContainer>
<tr><td><img src="/alfresco${child.icon32}"> ${child.properties.name}</td></tr>
</#if>
</#list>
</table>
…and it turned out that it only displays the "RSS Templates" folder, and nothing else! This is strange, because there are a lot more spaces inside the "Data Dictionary" space, and it's the same when I leave out the "child.isContainer" check. For other base spaces, such as "User Homes" or "Web Projects", I didn't receive any results!09-04-2008 04:52 AM
<#list companyhome.childByNamePath("User Homes/This Is The Space").children as node>
<tr>
<td>${node.id}</td>
</tr>
</#list>
09-04-2008 05:29 AM
Exception: freemarker.template.TemplateException - Expected method. companyhome.childByNamePath evaluated instead to freemarker.template.SimpleHash on line 21, column 12 in overview.get.html.ftl.
09-04-2008 06:49 AM
<#list companyhome.childByNamePath["User Homes/This Is The Space"].children as node>
<tr>
<td>${node.id}</td>
</tr>
</#list>
09-04-2008 07:38 AM
freemarker.core.InvalidReferenceException - Expression companyhome.childByNamePath["User Homes"] is undefined
I've already stripped the path down to just "User Homes" but it seems that the space can not be found? Any further ideas?
09-04-2008 08:01 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.