Custom directory settings

Feedback


In actual business applications, there are various classification methods provided for users to access resources quickly and easily. As a portal application platform, iPortal not only provides some common methods for users to filter resources, like: filter by resource type (map, service, scene, data, etc.), by date, visit counts, etc.,  but also offers administrators the ability to configure custom directories to manage and display resources according to different needs. After configuring custom directories, the filter of resource center adds a "Classification" area which lists the directories added by administrators. Users in your organization can view resources by classification.

Custom directory supports add directory/resource, move directory/resource to, rename directory, delete directory/resource and adjust directory order actions. A multilingual directory is also supported to set.

Enable/disable custom directory

Custom directory is disabled by default. As the iPortal administrator, you can enable/disable by the following two ways:

  1. Log in to the iPortal home page, click Management>Site Config>Directory Management, select Map/Service/ Scene/Data/Insights tab, click "Disable/Enable" at the "Display customMapContents/customServiceContents/customSceneContents/customDataContents/customInsightsContents"to enable/disable this function for each type of resource.
  2. Modify the configuration file. Go to [SuperMap iPortal installation directory]\webapps\iportal\WEB-INF directory, find and open iportal.xml file, find "<customDirectorySetting>" node, modify the boolean value of the corresponding resource type, then save.

Custom directory configuration

This section takes "customMapContents" as an example to introduce how to set the custom directories. Before your operation, first you need to log in to iPortal with your administrative account, go to Directory Management page.

Add directory

Click "Map" tab, the right side area displays custom map directory configuration items (The default system map directory doesn't display in this area).  Click "Add Directory" to add a directory at the root directory. To add a sub-directory, enter the created directory, then click "Add Directory".

Add resource

Click to enter a specific directory, click "Add Resource" and select maps you want to add on the popup, click "OK" to finish adding.

Move directory/resource to

Check the checkboxes at front of specific directories/resources, click "Move to" and choose a target directory on the popup, click "OK", all the resources and sub-directories under the selected directories, or selected resources will be moved to the target directory.

Rename directory

Check the chekbox at front of a specific directory, click "Rename", enter a new name on the popup, click "OK" to take effect.

Delete directory or resource

Check the checkboxes at front of specific directories/resources, click "Delete", a popup will display. Click "Confirm" to remove the selected directories/resources from the parent directory. If you need to delete the directories/resources from iPortal permanently, before click "Confirm", check the checkbox "At the same time, the item(s) in the directory will be removed from the portal and can not be recovered after deletion".

Modify the order of a directory

Hover on a specific directory, up and down arrows will appear. Click the up/down arrow, then click on the appeared   button to confirm the adjusting action; click the appeared button to cancel the current action.

Multilingual settings

Multilingual settings are disabled by default. To open this function, find iportal.xml, remove the comment of the following content. Currently, only Chinese and English are supported to configure.

<portalCustomSetting>

        <supportMultiLanguages>

            <enable>true</enable>

            <languages>zh-CN, en-US</languages>

        </supportMultiLanguages>

    </portalCustomSetting>

After the above configuration, both Chinese and English directory names need to be typed in when creating a new directory. At this point, users in your organization can view the right-language custom directories in resource center which conform to the browser's language environment.