08-23-2007 04:39 PM
<#– recent docs –>
<h2 style="margin-bottom:0.2em;">Most Recently Modified Docs</h2>
<table cellpadding=2>
<tr>
<td></td>
<td><b>Name</b></td>
<td><b>Location</b></td>
<td><b>Date</b></td>
</tr>
<#list space.childrenByXPath[".//*[subtypeOf('cm:content') and not(subtypeOf('fm:post'))]"]?sort_by(['properties','cm:modified'])?reverse as child>
<#if child_index = 15><#break></#if>
<tr>
<td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a></td>
<td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td>
<td><a href="/alfresco${child.parent.url}" target="new">${child.displayPath?replace(fullSpacePath,".")}</a></td>
<td>${child.properties["cm:modified"]?datetime}</td>
</tr>
</#list>
</table>
<#– Recent Topics/Posts –>
<#assign recentPosts=space.childrenByXPath[".//*[subtypeOf('fm:post')]"]?sort_by(['properties','cm:modified'])?reverse>
<#if (recentPosts?size > 0) >
<h2 style="margin-bottom:0.2em;">Most Recent Topics/Posts</h2>
<table cellpadding=2>
<tr>
<td></td>
<td><b>Topic/Post</b></td>
<td><b>Date/Author</b></td>
</tr>
<#list recentPosts as child>
<#if child_index = 8><#break></#if>
<tr>
<td valign="top"><a href="/alfresco${child.parent.url}"><img src="/alfresco${child.parent.icon16}" border=0></a></td>
<td valign="top"><a href="/alfresco${child.parent.url}">${child.parent.properties.name}</a><br/>
<#– <a href="/alfresco${child.url}" target="new">${child.properties.name}</a><br/> –>
<#if child.content?length < 40>
<a style="font-size:.9em;" href="/alfresco${child.url}" target="new">${child.content?replace("<br/>","- ")}</a><br/>
<#else>
<a style="font-size:.9em;" href="/alfresco${child.url}" target="new">${child.content?substring(0,40)?replace("<br/>","- ")}…</a><br/>
</#if>
</td>
<td valign="top">${child.properties["cm:modified"]?datetime}<br/>
<span style="font-size:.9em;">${child.properties["cm:modifier"]}</span>
</td>
</tr>
</#list>
</table>
</#if>
09-27-2007 01:26 PM
<#ftl strip_whitespace=true />
<#setting locale="en_US"/>
<#setting datetime_format="medium_short">
<#if space?exists && space.hasPermission("Read")>
<#assign spacePath = space.displayPath + "/" + space.name />
<#assign fullSpacePath = space.displayPath + "/" + space.name + "/" />
<#assign dateRangeBackMilliseconds = -1000*60*60*24*30 />
<#assign endDate=date?string("yyyy\\-MM\\-dd") + "T00:00:00"/>
<#assign startDate=incrementDate(date,dateRangeBackMilliseconds)?string("yyyy\\-MM\\-dd") + "T00:00:00"/>
<#assign recentContentMaxCount = 20 />
<#– recent content –>
<h2 style="margin-bottom:0.2em;">Recently Created/Modified Content</h2>
<script>var AlfNodeInfoMgr = new Alfresco.PanelManager("NodeInfoBean.sendNodeInfo", "noderef");</script>
<table class="recordSet">
<thead>
<tr>
<th style="padding:2px;text-align:left" class="recordSetHeader"><b>Content Item</b></th>
<th style="padding:2px;text-align:left" class="recordSetHeader"><b>Location</b><#– <span style="font-weight:normal;">(${fullSpacePath})</span>–></th>
<th style="padding:2px;text-align:left" class="recordSetHeader"><b>Date / Author</b></th>
</tr>
</thead>
<tbody>
<#list space.childrenByLuceneSearch["PATH:\"${space.qnamePath}//*\" AND TYPE:\"cm:content\" AND @cm\\:modified:[${startDate} TO ${endDate}]"]?sort_by(['properties','cm:modified'])?reverse as child>
<#if child_index = recentContentMaxCount><#break></#if>
<#assign rowstyle="recordSetRow" />
<#if (child_index % 2 = 1)>
<#assign rowstyle="recordSetRowAlt" />
<#else>
<#assign rowstyle="recordSetRow" />
</#if>
<#if child.type != "{http://www.alfresco.org/model/forum/1.0}post">
<#– content other than forum posts –>
<tr class="${rowstyle}">
<td style="padding:2px;text-align:left;padding-right:10px;"><a href="/alfresco${child.url}" target="_blank"><img src="/alfresco${child.icon16}" border=0></a> <a href="/alfresco${child.url}" target="_blank">${child.properties.name}</a>
<span onclick="AlfNodeInfoMgr.toggle('${child.nodeRef}',this);"><img id="browse:col1-img" src="/alfresco/images/icons/popup.gif" height="16" width="16" class="popupImage" /></span></td>
<td style="padding:2px;text-align:left;padding-right:10px;">
${child.displayPath}
<#–
<#if child.displayPath=spacePath>
<a href="/alfresco${child.parent.url}">.</a>
<#else>
<a href="/alfresco${child.parent.url}">${child.displayPath?replace(fullSpacePath,"")}</a>
</#if>
–>
</td>
<td style="padding:2px;text-align:left"><nobr>${child.properties["cm:modified"]?datetime}</nobr>
/ ${child.properties["cm:modifier"]}
</td>
</tr>
<#else>
<#– forum posts –>
<tr class="${rowstyle}">
<td style="padding:2px;text-align:left;padding-right:10px;"><a href="/alfresco${child.parent.url}"><img src="/alfresco${child.parent.icon16}" border=0></a> <a href="/alfresco${child.parent.url}">post to ‘${child.parent.properties.name}’</a>
<span onclick="AlfNodeInfoMgr.toggle('${child.nodeRef}',this);"><img id="browse:col1-img" src="/alfresco/images/icons/popup.gif" height="16" width="16" class="popupImage" /></span></td>
<td style="padding:2px;text-align:left;padding-right:10px;">
${child.displayPath}
<#–
<a href="/alfresco${child.parent.parent.url}">${child.parent.displayPath?replace(fullSpacePath,"")}</a>
–>
</td>
<td style="padding:2px;text-align:left"><nobr>${child.properties["cm:modified"]?datetime}</nobr>
/ ${child.properties["cm:modifier"]}
</td>
</tr>
</#if>
</#list>
</tbody>
</table>
</#if>
12-28-2007 10:47 PM
01-17-2008 08:51 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.