Customize filters

The filters on the left panel of the Rsource Center support customization, including: the resource type filter, type filter, directory filter, and tag filter. Among them, the directory filter requires to enable the custom directory function and set the corresponding directory structure tree before it can be displayed on the Resource Center page. Filter customization supports show/hide, modifying filter name and drag to adjust the display order.

After logging in to iPortal as an administrator, enter Management> Resource Center Management> Resource View Management page, The following customization operations can be performed:

  • Show/Hide: Check or uncheck the checkbox in front of the filter name to control the visibility of the corresponding filter in the resource center.
  • Modify filter name: Click the icon on the right side of the filter column, enter the filter alias in the pop-up modify name window, and click OK. Note: The directory filter does not support modifying the name. You can enter the custom directory page, and change the root directory name to modify the directory filter name.
  • Drag: When the mouse hovers on a filter, an icon will appear. Click and drag the filter with the left mouse button to move it up and down to adjust the display order. Note: All the directory filters can only be dragged as a whole to exchange the display order with other filters. Besides, you can drag and adjust each directory filter among the directory filters area.

After the customization is complete, click Save and enter Home> Resource Center to view the customization effect on the left sidebar.

iPortal also supports customizing the Resource Center filters via modifying the configuration file. You can modify the %SuperMap_iPortal_HOME%/webapps/iportal/resources/web-ui/config/ResourceCenterPage.json file for customization before starting iPortal for the first time. The file example is as follows :

{

    "aside": [

        {

            "key": "resourceType",

            "name": "resourceType",

            "show": true,

            "items": [

                {

                    "name": "map",

                    "show": true

                },

                {

                    "name": "service",

                    "show": true

                },

                {

                    "name": "scene",

                    "show": true

                },

                {

                    "name": "data",

                    "show": true

                },

                {

                    "name": "insights",

                    "show": true

                },

                {

                    "name": "mapdashboard",

                    "show": true

                },

                {

                    "name": "notebook",

                    "show": true

                }

            ]

        },

        {

            "key":"category",

            "name":"category",

            "show":true,

            "querySubDirResource": false

        },

        {

            "key":"subResourceType",

            "name":"subResourceType",

            "show":true

        },

        {

            "key":"tag",

            "name":"tag",

            "show":true

        }

    ]

}

  • <key>: the identifier of the filter, the value is not allowed to be modified
  • <name>: The display name of the filter in the Resource Center
  • <show>: Whether to show the filter in the Resource Center
  • <items>: Show/hide a certain resource type. Only the resource type filter contains this item. By defult, all resource types are displayed. Resource types include: Map, Service, Data, Scene, Insights, MapDashboard, Notebook
  • <querySubDirResource>: Directory query strategy. Only the directory filter contains this item. The default value is false, indicating clicking on the parent directory, the search results will only list the resources contained in the parent directory itself. If set to true, the resources contained in the subdirectories will be listed too.