02-22-2008 10:02 AM
<#list resultset as node>
<ul>
<#if node.isDocument>
<li>${node.name} - ${xmldate(node.properties.modified)}</li>
</#if>
</ul>
</#list>
<#list resultset as node>
<#if node.isDocument>
<#assign dom=node.xmlNodeModel>
<#if dom.page.title??>
<h2>${dom.page.title}<h2>
<p>${dom.page.body}<p>
</#if>
<#if dom.article??>
<h2>${dom.article.title}<h2>
<p>${dom.article.body}<p>
</#if>
</#if>
</#list>
freemarker.core.NonStringException - Error on line 5, column 39 in cms/search/search.get.html.ftl Expecting a string, date or number here, Expression dom.page.title is instead a freemarker.ext.dom.NodeListModel
02-22-2008 11:08 AM
02-25-2008 06:22 AM
<#if dom.page.title??>
Was not really working since it always returns true, but this works:<#if dom.page?size == 1>
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.