Hi, I have installed community 4.2.c edition. Now there is new feature called "share", so while clicking it will generate mini URL which will open in new browser without login and preview document. I want download button in that page. Actually URL is like confusing that I am not able to get that page or webscript.
I am using : Alfresco community 4.2.c edition. topic: public preview of shared document. solution want : download button on any previewed document.
This feature is known as "Quick Share" and the idea is that it provide access to content for unauthenticated users (e.g. anyone can access the content from that URL). The full URL is generated as the same WebScript is used to render the content. Assuming that you do want to make the content available to unauthenticated users then I'm not actually sure it is a simple case of adding a download button as you will need to make some significant enhancements to allow the actual download of content. Authenticated users with permission to access the file will already see a "Document Details" button that takes them directly to the details page for the content from which they can download the file.
You should be absolutely sure of your use-case before you begin allowing unauthenticated data access to download the content.
Actually I am definetely sure about my use-case and user can have download button at document-details page. But let say if you choose file which is not previewable then that preview component itself give you download link inside public preview page. My use case is like user should always see download button whether content is previewable or not.
Please give me if this scenario can be possible or give me that page so I can go ahead. using shortURL I could not identify page.
As I've said on the other thread (which you really didn't need to start):
"There is a URL rewrite filter (defined in the urlrewrite.xml file that you'll see in the WEB-INF directory) that maps anything with /s/ in to /page/quickshare?id= where the id is set to the value after /s/ in the URL. The id needs to map to a valid shared node. If you want to customize the quickshare page then you'll need to customize that page."
The scenario you want to achieve is possible, but my point is that I don't believe it's quite as straightforward as adding a download link on that page, if you point the download link at the standard download URL then an unauthenticated user (or even an authenticated user without read privileges to the node) will not be able to download it. You'll almost certainly need to update the WebScript that backs the standard download link (or create your own) and this could (if not done properly) open a security hole in your system.
Actually purpose of starting new thread is to know about only where actually files are for generating shortURL and how to make it to original one or extracted one.
By the way thanks for pointing to the page. I will try on that page.