The description document describes the Folder Listing web script and a JavaScript controller script implements its behavior. The controller establishes the folder to list from the invoked URI and query the repository for that folder ensuring error conditions are catered for.
-
Log in to Alfresco Share:
- Open a web browser and enter the URL: http://localhost:8080/share
- If prompted, log in with the user name admin and password admin.
- Navigate to .
-
Create a web script controller script for your Folder Listing
example:
The component script file name dir.get.js adheres to the naming convention defined by the Web Script Framework.
Your Folder Listing example now comprises the following two component files:
- /org/example/dir.get.desc.xml
- /org/example/dir.get.js
The Web Script Framework knows that both these files are related to the same web script, as they share web script package, web script ID, and HTTP method.