GithubHelp home page GithubHelp logo

vikash09 / alfresco-share-create-link Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laborima/alfresco-share-create-link

0.0 0.0 0.0 123 KB

"Create Link" is a custom Alfresco Share Document Library action, similar to "Copy to...", but instead of copying, it creates a link to the document.

License: Apache License 2.0

FreeMarker 4.23% Java 52.75% JavaScript 43.01%

alfresco-share-create-link's Introduction

Alfresco Share "Create Link" Action

Description

"Create Link" is a custom Alfresco Share Document Library action, similar to "Copy to...", but instead of copying, it creates a link (shortcut, reference) to the document.

With standard Alfresco Share, if you want a document to be accessible from multiple locations, it must be physically copied. "Create Link" action allows a single document stored in Alfresco to be accessible from multiple locations without duplicating the document. A user who is able to access the primary document is able to create a reference in any number of locations that links back to the physical document. Any changes made to the physical document or its metadata are immediately accessible from all referenced locations. Once you have a link created, you can use standard Alfresco Share actions to delete a link without affecting primary document, or to navigate to the folder where primary document resides.

This project uses Alfresco (Maven) SDK. Implementation is based on Alfresco Explorer "Paste as Link" Shelf's functionality, which means that links created by either actions should behave the same way.

Installation

You can find ready-to-install alfresco and share AMP's on releases page.

Alternatively, you can clone this repository and use mvn install to build AMP's from the latest source code.

###Compatibility |Module version|Alfresco version|Java version|Alfresco (Maven) SDK| |--------------|----------------|------------|------------------| |v1.0.0|4.2.x, 5.0.a|Java 7|1.1.1|

Using

Using "Create Link" action is similar to using "Copy to..." or "Move to..." out-of-the box Alfresco Share actions:

  1. Navigate to a document in your Document Library (e.g. "My File.docx") you want to create link to and execute "Create Link" action
  2. Select a target folder where you want your link to be created and confirm the dialog (you will need write permissions on selected folder)
  3. A node of type "app:filelink" pointing to "My File.docx" will be created within the selected folder, with appropriate thumbnail and name like "Link to: My File.docx"

License, support, maintenance

This is an open-source project, distributed under Apache License (v2.0). It's supplied free of charge, with no formal support, maintenance or warranty. If you find a bug related to this functionality or you have some nice enhancement in mind, feel free to raise an issue or, even better, implement a solution and contribute it back to the project.

FAQ

What is an AMP file and how can I install it?

An AMP file is a standard way of distributing Alfresco extensions. Use Module Management Tool to apply "create-link-repo.amp" to "alfresco.war", and "create-link-share.amp" to "share.war" application. Official documentation is always a good reference.

What is Alfresco (Maven) SDK and how can I use it?

There is a great tutorial on how to get started with Alfresco Maven SDK. Official documentation is always a good reference.

Can I create a link to folder?

Although the creation of links to folder is supported by backend mechanism, I did not intentionally add "Create Link" action to the folder-browse and folder-details action groups. The reason for this is the way Alfresco Share application works with links (even with those created using Alfresco Explorer Shelf "Paste as Link" functionality):

  • Document link points to the document details view which is fine and expected
  • Folder link points to the folder details view and clicking the folder link will not navigate you to the linked folder path, displaying folder's content, but to the folder details view

Why am I getting an error "Link creation could not be completed"?

Common reasons for getting such error message are:

  • You have not correctly installed "create-link-repo.amp" to "alfresco.war"
  • You already have a link with the same name within a selected folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.