Book Image

Alfresco Developer Guide

Book Image

Alfresco Developer Guide

Overview of this book

Table of Contents (17 chapters)
Alfresco Developer Guide
Credits
About the Author
About the Reviewers
Preface
Index

Adding New Menu Items with UI Actions


Probably the simplest form of web client customization is adding to or changing the existing links in the various menus throughout the client. Somewhat confusingly, these links are called UI Actions.

Step-by-Step: Adding a Simple UI Action

Suppose SomeCo wanted to add a link to the corporate website within the Alfresco user interface. To illustrate a few of the options available, let's add the link to three different places within the UI:

  1. The document browse menu, which is the menu shown for each document in a list of documents.

  2. The document browse actions menu, which is the menu shown when you click More Actions for a specific document in a list of documents.

  3. The document details actions menu, which is the list of actions shown when viewing the document details.

Adding the UI action to these menus (called action groups) is a simple matter of configuration. It involves finding an icon to represent the UI action, and then updating web-client-config-custom.xml...