mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- 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:
@@ -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>
|
||||
|
||||
|
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user