You are here

Modifying Out-of-the-box Aikau Pages

The Share web application has a number of Aikau pages. These can be modified.
Extension Point Modifying Out-of-the-box Aikau Pages
Architecture Information Share Architecture.
Description The preferred way of modifying Aikau pages is by using Surf Extension Modules to target the Aikau widget that should be replaced or hidden. It is also possible to add widgets to a page this way. The Extension Modules section has all the details.

Now, if we want to modify an existing page we need to grab hold of it in the Web Script controller, this will look like this:

var widget = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULTS_LIST");
if (widget && widget.config && widget.config.widgets) {
   widget.config.widgets.push( {

This is all that is required to extend an existing JSON model. We're using widgetUtils to find the FCTSRCH_SEARCH_RESULTS_LIST widget. Once we have it, we simply push widgets into it.

Deployment - App Server
  • tomcat/shared/classes/alfresco/web-extension/site-data/extensions/ (Untouched by re-depolyments and upgrades)
Deployment - SDK Project
  • share-amp/src/main/amp/config/alfresco/web-extension/site-data/extensions/ - Extension module goes here
More Information
Alfresco Developer Blogs