<!– Current page url - (javascript will prefix with the current browser location) –>
<h3 class="thin dark">${msg("page.header")}</h3>
<div class="link-info">
<input id="${el}-page" value=""/>
<a href="#" name=".onCopyLinkClick" class="${el} hidden">${msg("page.copy")}</a>
</div>
<a href=http://monadresse:monport/alfresco/d/d/workspace/SpacesStore/${noeud}/${nomDuFichier} </a>
<webscript>
<shortname>Creation d'un onglet de partage du lien public d'un fichier</shortname>
<url>/test/lien_partage</url>
</webscript>
<#include "component.head.inc">
<!– Document Links –>
<@link rel="stylesheet" type="text/css" href="${page.url.context}/components/document-details/document-links.css" />
<@script type="text/javascript" src="${page.url.context}/components/document-details/document-links.js"></@script>
<#if document??>
<#if document.workingCopy??>
<!– Don't display links since this nodeRef points to one of a working copy pair –>
<#else>
<#assign el=args.htmlid?html>
<script type="text/javascript">//<![CDATA[
new Alfresco.DocumentLinks("${el}").setOptions(
{
nodeRef: "${nodeRef?js_string}",
siteId: <#if site??>"${site?js_string}"<#else>null</#if>
}).setMessages(${messages});
//]]></script>
<div id="${el}-body" class="document-links document-details-panel">
<h2 id="${el}-heading" class="thin dark">${msg("header")}</h2>
<div class="panel-body">
<!– Current page url - (javascript will prefix with the current browser location) –>
<h3 class="thin dark">${msg("page.header")}</h3>
<div class="link-info">
<input value="10.1.8.14:8082/alfresco/guestDownload/a/${node.contentURL?substring(18)}">
<a href="#" name=".onCopyLinkClick" class="${el} hidden">${msg("page.copy")}</a>
</div>
</div>
<script type="text/javascript">//<![CDATA[
Alfresco.util.createTwister("${el}-heading", "DocumentLinks");
//]]></script>
</div>
</#if>
</#if>
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
function main()
{
AlfrescoUtil.param('nodeRef');
AlfrescoUtil.param('site', null);
var documentDetails = AlfrescoUtil.getNodeDetails(model.nodeRef, model.site);
var nodeDetails = AlfrescoUtil.getNodeDetails(model.nodeRef, model.site);
if (documentDetails)
{
model.document = documentDetails.item;
model.repositoryUrl = AlfrescoUtil.getRepositoryUrl();
model.node = nodeDetails.item.node;
}
}
main()
header=Partager le lien
page.header=Copier ce lien pour partager le lien de telechargement
page.copy=copier ce lien pour partager le lien de telechargement
<extension>
- <modules>
- <module>
<id>modifie lien "partager"</id>
- <components>
- <component>
<region-id>document-links</region-id>
<source-id>document-details</source-id>
<scope>template</scope>
- <sub-components>
- <sub-component id="lien_partage">
<url>/test/lien_partage</url>
</sub-component>
</sub-components>
</component>
</components>
</module>
</modules>
</extension>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.