You are here

Creating Alfresco Mobile user menus

Use the View object to define Alfresco Mobile user menu options.

You can set up a range of menus, each one containing various options (or view types), from specific sites or searches through to individual files or folders.

For example you could set up a profile for your Sales team, so that when they use Alfresco Mobile they can drill straight into pricelists and sales tools without having to search for them. Another profile might give your IT team quick access to any outstanding Support tasks they have.

Note: All IDs are user-defined, so it's recommended that you set up a system for using consistent IDs. Views and features also use types, which are pre-defined.
  • view-id = required and user-defined
  • label-id = optional and used for display in the Alfresco Mobile menu
  • description-id = optional
  • type = required and pre-defined

 "views" : {
   "<view-id>":
   {
      "label-id": "<label-id>",
      "description-id": "<description-id>",
      "type": "<view-type>"
      "params": {
   }
}

So for example, you could create an Activities menu item that links straight to the activities on your Sales team site.

 "views" : {
   "<view-activities-sales>":
   {
      "label-id": "<Activities>",
      "type": "org.alfresco.client.view.activities"
      "params": {
         "siteShortName": "SalesTeam"
   }
}
See below for more details on the menu items you can add, and examples of how you could implement them.

Most of these support pagination so that you can customize the number of items displayed. Sync doesn't support pagination.

 "views" : {
            "<view-id>": {
            "type": "<view-type>",
            "params": {
               "pagination": {
                  "maxItems": 1,
                  "skipCount": 1
            }
          }
       }
    }

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.