O'Reilly logo

Alfresco 3 Cookbook by Snig Bhaumik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying details of documents

This Web Script will accept a string from a user, will search for documents with that name, and finally will display the details of all those documents.

How to do it...

  1. We will have to create new files for the Web Script, let's name this script as documentdetails.
  2. Open a text editor and create a new file with this code:
    <webscript>
    <shortname>Document Details</shortname>
    <description>Searches document(s) and displays details of all the documents.</description>
    <url>/com/infoaxon/docdetails</url>
    <format default="html"/>
    <authentication>user</authentication>
    <transaction>required</transaction>
    </webscript>
    
  3. Save the file with the name docdetails.get.desc.xml in the \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\com\infoaxon ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required