10-02-2013 01:04 PM
Hello,
I would like do the same as : Xhtml : get all a document path with "Title" and not "name" but in document template (Code in freemarker) for email, pdf, xls extraction.
So I got a "Document" in my template and need to write it's path, not with the classic "name", but with the "title" attribute of each element of the path.
Do you know how to do it ?
thank you
10-02-2013 01:51 PM
I used a function, as I could :
<#function getPathWithTitle doc>
<#local tabPath = doc.path?split("/") >
<#local pathSize = tabPath?size >
<#local currentDoc = doc >
<#local resultPath ="" >
<#list 1..pathSize-1 as i>
<#attempt>
<#local theDoc = currentDoc.parent >
<#recover>
<#local resultPath = currentDoc.title + "/" + resultPath >
<#break>
</#attempt>
<#if theDoc?has_content >
<#local resultPath = currentDoc.title + "/" + resultPath >
<#local currentDoc = theDoc >
</#if>
</#list>
<#return resultPath?html >
</#function>
10-18-2013 01:19 PM
When user of UI try to render this document template with clic on an UI button it fails to get doc.parent with exception user can't read it"...
10-21-2013 06:25 AM
Question ref created
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.