The functionality I need to add to my Alfresco repository is what I have seen through the Share document-details template.
This template receives an input nodeRef parameter (it can belong to the Alfresco repository instead of Share) and I understand that at the end shows the flash player with the corresponding document using the "web-preview" web script. Is it true?
Then, can I use directly this web script called "web-preview" to get a flash PDF viewer for my documents? How can I invoke it to view a document?
According to its specification, web-preview.get.desc.xml, no input parameter is needed. However, the code works with "args.htmlid" and "args.nodeRef"
Sending these two parameters I get a JavaScript error because "Alfresco is undefined", so some libraries are not included correctly. But debuggin I can see the node is retrieved.
Please, help! Thanks.
Sergi