As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<table> <tr> <td></td> <td><b>Name</b></td> <td><b>Title</b></td> <td><b>Description</b></td> <td><b>Created</b></td> <td><b>Modified</b></td> <td><b>Size</b></td> <td><b>Locked</b></td> <td><b>Details</b></td> </tr> <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child> <#if child.isDocument> <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>${child.properties.title}</td> <td>${child.properties.description}</td> <td>${child.properties.created?date}</td> <td>${child.properties.modified?date}</td> <td>${(child.size / 1000)?string("0.##")} KB</td> <td> <#if child.isLocked>Yes</#if></td> <td><a href='#' onclick="document.forms['browse']['browse:act'].value='browse:details_doc_id_216';document.forms['browse']['id'].value='${child.properties.node-uuid}';document.forms['browse'].submit();return false;" id="details_doc_id_216" class=inlineAction><img src="/alfresco/images/icons/View_details.gif" border=0 alt="Details ansehen" title="Details ansehen" align=absmiddle></a><a href='#' </td> </tr> </#if> </#list> </table>
<#– Table of the documents in my Home Space –> <#– Shows the Icon and link to the content for the doc, also the size in KB and lock status –> <table> <tr> <td></td> <td><b>Name</b></td> <td><b>Title</b></td> <td><b>Description</b></td> <td><b>Created</b></td> <td><b>Modified</b></td> <td><b>Size</b></td> <td><b>Locked</b></td> <td><b>Actions</b></td> </tr> <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child> <#if child.isDocument> <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>${child.properties.title}</td> <td>${child.properties.description}</td> <td>${child.properties.created?date}</td> <td>${child.properties.modified?date}</td> <td>${(child.size / 1000)?string("0.##")} KB</td> <td> <#if child.isLocked>Yes</#if></td> <td style="text-align: left;"><nobr><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:edit_doc_http_id_4438';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;" id="edit_doc_http_id_4438" class="inlineAction"><img src="/alfresco/images/icons/edit_icon.gif" alt="edit" title="edit" align="absmiddle" border="0"></a> <a href="#" onclick="document.forms['browse']['browse:act'].value='browse:checkout_doc_id_4447';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;" id="checkout_doc_id_4447" class="inlineAction"><img src="/alfresco/images/icons/CheckOut_icon.gif" alt="check out" title="check out" align="absmiddle" border="0"></a> <a href="#" onclick="document.forms['browse']['browse:act'].value='browse:details_doc_id_4452';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;" id="details_doc_id_4452" class="inlineAction"><img src="/alfresco/images/icons/View_details.gif" alt="view details" title="view details" align="absmiddle" border="0"></a> <a href="#" onclick="document.forms['browse']['browse:act'].value='browse:delete_doc_id_4456';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;" id="delete_doc_id_4456" class="inlineAction"><img src="/alfresco/images/icons/delete.gif" alt="delete" title="delete" align="absmiddle" border="0"></a> <a href="#" onclick="javascript:_toggleMenu(event, 'browse:content-more-menu_4');return false;" title="more actions"><img src="/alfresco/images/icons/more.gif" align="absmiddle" border="0"></a> <br><div id="browse:content-more-menu_4" style="position: absolute; display: none; padding-left: 2px;"> <table class="moreActionsMenu" border="0" cellpadding="0" cellspacing="4"> <tbody> <tr> <td><img src="/alfresco/images/icons/preview.gif" alt="Vorschau mit Vorlage" title="Vorschau mit Vorlage" border="0"></td> <td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:preview_doc_id_4462';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">preview with a template</a></td></tr><tr> <td><img src="/alfresco/images/icons/update.gif" alt="update" title="update" border="0"></td> <td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:update_doc_id_4466';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">update</a></td></tr> <tr><td><img src="/alfresco/images/icons/cut.gif" alt="Cut" title="cut" border="0"></td> <td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:cut_node_id_4479';document.forms['browse']['ref'].value='workspace://SpacesStore/${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">Ausschneiden</a></td></tr> <tr><td><img src="/alfresco/images/icons/copy.gif" alt="copy" title="copy" border="0"></td><td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:copy_node_id_4482';document.forms['browse']['ref'].value='workspace://SpacesStore/${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">copy</a></td></tr> <tr><td><img src="/alfresco/images/icons/create_forum.gif" alt="start a discussion" title="start a discussion" border="0"></td> <td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:create_forum_node_id_4486';document.forms['browse']['id'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">start a discussion</a></td></tr> <tr><td><img src="/alfresco/images/icons/new_workflow.gif" alt="Start Advanced Workflow" title="Start Advanced Workflow" border="0"></td><td><a href="#" onclick="document.forms['browse']['browse:act'].value='browse:start_workflow_id_4489';document.forms['browse']['item-to-workflow'].value='${child.properties["sys:node-uuid"]}';document.forms['browse'].submit();return false;">Start Advanced Workflow</a></td> </tr></tbody></table></div></nobr> </tr> </#if> </#list> </table>
<#assign ref=child.nodeRef> <#assign workspace=ref[0..ref?index_of("://")-1]> <#assign storenode=ref[ref?index_of("://")+3..]> <td><img src="/alfresco/images/icons/View_details.gif"></td> <td><a href="/alfresco/navigate/showDocDetails/${workspace}/${storenode}"> Details</a></td> <td><img src="/alfresco/images/icons/export.gif"></td> <td><a href="/alfresco/download/attach/${workspace}/${storenode}/${child.properties.name}"> Download</a></td>
Sorry, it does not work as I thought. The number in edit_doc_http_id_4438 (used in document.forms['browse']['browse:act'].value='browse:edit_doc_http_id_4438')changes on every login. It might possibly be connected to the session of the specific user, or something similiar. I´m not sure if it is somehow possible to get the actual number and to paste it in the href link, but it seems that this is not the best way to display the edit, update, delete buttons in a custom view.