- added link to external post if available

- fixes for taglibrary component
- fix for broken users search dialog in case first/lastname null


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10268 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Michael Ru
2008-08-06 10:05:45 +00:00
parent 93091b6475
commit 2923a12f09
2 changed files with 4 additions and 18 deletions

View File

@@ -15,18 +15,11 @@
<#macro addContent item>
<#escape x as jsonUtils.encodeJSONString(x)>
<#if (contentLength?? && contentLength > -1)>
"content" : "${cropContent(item.node.properties.content, contentLength)}",
<#if (contentLength?? && contentLength > -1 && (item.node.content?length > contentLength))>
"content" : "${item.node.content?substring(0, contentLength)}",
<#else>
"content" : "${item.node.content}",
</#if>
<#--
<#if (contentLength?? && contentLength > -1)>
"content" : "${stringUtils.stripUnsafeHTML(cropContent(item.node.properties.content, contentLength))}",
<#else>
"content" : "${stringUtils.stripUnsafeHTML(item.node.content)}",
</#if>
-->
</#escape>
</#macro>

View File

@@ -15,18 +15,11 @@
<#macro addContent post>
<#escape x as jsonUtils.encodeJSONString(x)>
<#if (contentLength?? && contentLength > -1)>
"content" : "${cropContent(post.properties.content, contentLength)}",
<#if (contentLength?? && contentLength > -1 && (post.content?length > contentLength))>
"content" : "${post.content?substring(0, contentLength)}",
<#else>
"content" : "${post.content}",
</#if>
<#--
<#if (contentLength?? && contentLength > -1)>
"content" : "${stringUtils.stripUnsafeHTML(cropContent(post.properties.content, contentLength))}",
<#else>
"content" : "${stringUtils.stripUnsafeHTML(post.content)}",
</#if>
-->
</#escape>
</#macro>