The resource center page supports customization. After logging in to iPortal, administrators can go to 'Management' > 'Resource Center Configuration' > 'Resource View Configuration' to perform the following customization operations:
General Settings
The general settings of the resource center include: directory filtering method, default view mode, default order by, etc.
-
Directory Filtering Method: The display filtering method for the resource center directory filter includes the following two options:
- Only query resources only in the current directory: After clicking on a directory, only the resources owned by the selected directory itself will be displayed.
- Query resources in the current directory and sub-directories: After clicking on a directory, all resources within the selected directory and its sub-directories will be displayed.
-
Default View Mode: The default display mode for resources, supporting both grid and list views.
-
Default Order By: The default sorting order for resources, supporting sorting by 'Resource Name', 'Modification Time', 'Hot/Visits/Downloads','Collections' etc., with options to sort in ascending or descending order.
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.
Customize Tab Page
iPortal allows users to configure whether to display the resource tabs on the Resource Center page by modifying the configuration file. These tabs include Latest / Public / Share with Me / My Organization / My Groups / My / My Favorites, etc. It also allows specifying the default tab that opens when entering the Resource Center page, enabling a flexible way to showcase resources.
The configuration method is as follows:
- In the iPortal product package, navigate to the %SuperMap iPortal_HOME%\webapps\iportal\resources\web-ui\config directory, find and open the ResourceScopre.json configuration file.
- Modify the 'default' key value to re-specify the default resource tab that opens when entering the Resource Center.
- 'scopeTab' defines the array of all resource tabs. Modify the 'show' key value to 'false' to hide that specific tab in the Resource Center.
- After modifying and saving the above configuration, save and enter Home > Resource Center to view the customization effect on the tab pages
Note: The customization effect of the resource source tab will also take effect on the tab of the application center, WebApps' add source pages, etc.