Web Script: org/alfresco/components/links/linkedit.get
Generated from /share/service/script/org/alfresco/components/links/linkedit.get on Jun 13, 2026 9:39:03 PM

Script Properties
Id:org/alfresco/components/links/linkedit.get
Short Name:Create or edit link
Description:Create or edit link form
Authentication:none
Transaction:none
Method:GET
URL Template:/components/links/linkedit
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:[undefined]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/components/links/linkedit.get.desc.xml
<webscript>
  <shortname>Create or edit link</shortname>
  <description>Create or edit link form</description>
  <url>/components/links/linkedit</url>
</webscript>
File: org/alfresco/components/links/linkedit.get.head.ftl
<!-- TagLibrary Assets -->
<link rel="stylesheet" type="text/css" href="${page.url.context}/modules/taglibrary/taglibrary.css" />
<script type="text/javascript" src="${page.url.context}/modules/taglibrary/taglibrary.js"></script>

<!-- LinkEdit Assets -->
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/links/linkedit.css" />
<script type="text/javascript" src="${page.url.context}/components/links/linkedit.js"></script>
File: org/alfresco/components/links/linkedit.get.html.ftl
<script type="text/javascript">//<![CDATA[
   new Alfresco.LinkEdit("${args.htmlid}").setOptions(
   {
      siteId: "${page.url.templateArgs.site}",
      containerId: "links",
      <#if page.url.args.linkId??>
         editMode: true,
         linkId: "${page.url.args.linkId?html}"
      <#else>
         editMode: false,
         linkId: ""
      </#if>
   }).setMessages(
      ${messages}
   );
//]]></script>

<#if page.url.args.linkId??>
   <h1>${msg("form.editLink")}</h1>
<#else>
   <h1>${msg("form.createLink")}</h1>
</#if>

<div id="${args.htmlid}-div" class="editLinkForm hidden">
   <form id="${args.htmlid}-form" method="post" action="">
      <div>          
         <div>
            <label for="${args.htmlid}-title">${msg("form.title")}:</label>
            <input class="lbl" type="text" id="${args.htmlid}-title" name="title" value="" tabindex="1"/>
            <span class="lbl dot">*</span>
         </div>
         <div>
            <label for="${args.htmlid}-description">${msg("form.description")}:</label>
            <textarea class="lbl" id="${args.htmlid}-description" type="textarea" rows="3" name="description" tabindex="2"></textarea>
         </div>
         <div>
            <label for="${args.htmlid}-url">${msg("form.url")}:</label>
	        <input  class="lbl" id="${args.htmlid}-url" type="text" name="url" tabindex="3"/>
            <span class="lbl dot">*</span>
         </div>
         <div>
            <label for="${args.htmlid}-internal">${msg("form.internal")}:</label>
            <input class="lbl checkInternal" id="${args.htmlid}-internal" class="internal" type="checkbox" name="internal" tabindex="4"/>
            <span class="lbl help">${msg("form.internalDescription")}</span>
         </div>

         <!-- tags -->
         <label for="${args.htmlid}-tag-input-field">${msg("form.tags")}:</label>
         <#import "/org/alfresco/modules/taglibrary/taglibrary.lib.ftl" as taglibraryLib/>
         <@taglibraryLib.renderTagLibraryHTML htmlid=args.htmlid />
         <!-- end tags -->

         <input type="hidden" name="page" value="links-view"/>
      </div>
      <div class="nodeFormAction">
         <input type="submit" id="${args.htmlid}-ok" value="" tabindex="7"/>
	     <input type="button" id="${args.htmlid}-cancel" value="${msg("button.cancel")}" tabindex="8"/>
      </div>
   </form>
</div>
File: org/alfresco/components/links/linkedit.get.properties
## template
form.createLink=Create Link
form.editLink=Edit Link

## form
form.title=Title
form.description=Description
form.url=URL
form.internal=Internal
form.internalDescription= (Links marked as "Internal" will be open in the same browser window,\
   otherwise links will be open a new browser window / tab)
form.tags=Tags
chose=Choose from popular tags in this site

## form buttons
button.add=Add
button.update=Update

## JS object messages
message.loadlinkdata.failure=Unable to load link data
message.savelink.success=Link saved
message.savelink.failure=Unable to save the link
message.submitting=Submitting...

## TagLibrary
taglibrary.tags=Tags
taglibrary.typetag=Type Tag(s)
taglibrary.populartagslink=Choose from popular tags in this site
taglibrary.msg.failedLoadTags=Cannot load tags from the server (connection down?)
taglibrary.msg.unableLoadTags=Unable to load tags: {0}

Store: classpath:alfresco/webscripts

[No implementation files]