- Download the V1Pro.zip from www.daeja.com. Give a legitimate email address as the trial license key will be mailed to this address and there's no way to install without this key.
- Extract the zip file, this will yield a directory structure, out of which v1files is the folder that has all the necessary files for configuring ViewOne.
- Double Click on the index.htm file in the parent directory, click on the 'Click here to see demonstration' link.
- Click the first/second or third demo (doesn't matter to activate the product).
- Click yes to trust the applet (no IE browsers) and Yes for installing ActiveX control (IE browser).
- Enter the License Key and notice ViewOne Pro installed. I am not sure what settings does the application does next, but it does appear to now start recognizing the lic.v1 file as a valid 14 day license.
- Copy the v1files directory to tomcat/webapps/alfresco
- Custom View under Details View
- In Alfresco upload a Presentation Template, that holds the code to display documents via the ViewOne Pro Applet. This template needs to be uploaded in the Data Dictionary/Presentation Templates folder. Our file is docPreview.ftl
- For any Custom View configuration of elements (documents or spaces), go to the 'Details View' of that element, click on the custom view and select apply template. In the drop down for templates, select the docPreview.ftl template added above. Notice ViewOne Pro displaying the images/pdfs.
- Open the document in a new tab/window
- This functionality is possible by modifying the tomcat\webapps\alfresco\jsp\browse\browse.jsp file. In this file, we will find the line %-- Primary column for icons view mode --%. Under this section, replace this a:actionLink id="col11-act2" value="#{r.name}" href="#{r.url}" target="new" styleClass="header" (which is the second link, the first being the icon of the document) with...
a:actionLink id="col11-act2" value="#{r.name}" href="http://localhost:8080/alfresco/jsp/extension/dashboards/view1pro.jsp?name=#{r.url}" target="new" styleClass="header" - Notice that for the above to work, we will have to add a file view1pro.jsp containing the Applet code to the Alfresco directory. Also notice that the extension directory is not present by default, its what we created.
- [TODO] The URL should be taking a relative path rather than a hard reference to localhost:8080.
- Finally Viewone in the MySpaces WebScript.
- Please refer to the avspaces blog for configuration on your own MySpaces window.
- Copy the myspaces_preview_panel.ftl (This is the one that renders the preview window) in tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\client to avspaces_preview_panel.ftl. I am not sure why this is kept here, will find it someday [TODO].
- A few modifications (which results in avspaces_preview_panel.ftl)
- include tiff as a mimetype in the isImage variable.
- include pdf as a mimetype and introduce it via isPdf variable.
- modify the isImage condition to include isPdf and render both via ViewOne.
- to render delete the current tag under the center tag and introduce the applet tag.
- In the avspaces.js, find the line ~309 "noderef=" + resource.id + "&template=myspaces_preview_panel.ftl" and replace it with a reference to avspaces_preview_panel.ftl above.
- Make sure that tomcat is restarted and all the files are correctly picked up, I had to spend 3 hours chasing behind this ghost, until it finally picked up everything correctly. The way you can say whether your file is picked up correctly or not, is by modifying the Update, Edit Details labels in the ftl file, if they change, its being picked up correctly.
Powered by Blogger.
Labels
- Alfresco ( 8 )
- Ant ( 2 )
- Apache ( 6 )
- Apex ( 2 )
- Business ( 1 )
- Chirp ( 13 )
- Cisco ( 1 )
- CVS ( 2 )
- Database ( 3 )
- Eclipse ( 6 )
- Excel ( 1 )
- favorite ( 4 )
- force.com ( 1 )
- HSQLDB ( 2 )
- InnerCoder ( 2 )
- Java ( 3 )
- jBPM ( 2 )
- Life ( 3 )
- Lightning Web Components ( 1 )
- Mac OS X ( 7 )
- Mgmt ( 2 )
- Miscellaneous ( 1 )
- MySQL ( 4 )
- Netbeans ( 1 )
- Networking ( 2 )
- Nutch ( 1 )
- Open Source ( 2 )
- PHP ( 5 )
- phpmyadmin ( 1 )
- PostgreSQL ( 1 )
- Programming ( 4 )
- Salesforce ( 16 )
- Salesforce Apex ( 3 )
- Search Engine ( 1 )
- Setup Configuration ( 23 )
- SFDX ( 5 )
- slide ( 3 )
- Solaris ( 5 )
- Spreadsheet ( 1 )
- SQL ( 1 )
- Staffing ( 1 )
- Technology ( 28 )
- Thought Leadership ( 1 )
- Thunderbolt ( 1 )
- ubuntu ( 2 )
- Unix ( 9 )
- Unix commands ( 4 )
- ViewOne ( 1 )
- VisualCode ( 4 )
- Web ( 1 )
- WebCrawler ( 1 )
- WordPress ( 1 )
- Workflow ( 1 )
- XML ( 2 )
- XML Binding ( 1 )
- XMLBeans ( 1 )
- Yahoo ( 1 )
We have followed these instructions, but when we click on a folder in the myspaces, it opens the viewer with a thumbnail of each document in the viewer. When I click on a thumbnail, it only previews the first page of the PDF and I can't get it to preview the other pages of that particular PDF. Is there something I have Missed?
Ani Dadu - Could you lend us a hand on getthing these integrated? We are running the latest version of alfresco and I think some of the steps may have changed.
Thanks
Article is good, but this integration will work in Linux(Ubuntu 9.x). I folled your tutorial, i am not able to view Tool Box of Annotations.
@Umamaheshwar : it is not showing the annotations tool box because it is old version of veiwone
Post a Comment