mxp.plugins.ResourceEditor - geosolutions-it/MapStore GitHub Wiki
Needed Files
In order to use this plugin you need to include this files in the build.cfg:
src/mxp/widgets/form/GeoStoreCategoryManager.js
and its dependencies
NOTE: In the default configuration these files are present.
Plugin description
This plugin allow to manage resources from a GeoStore Category. Is a basic implementation of the GeoStore Category Manager Widget with a text area as editor.
Configuration Example
You can configure it adding this plugin with this configuration:
{
"ptype": "mxp_geostore_resource_editor",
"category": "MAP",
"buttonText": "Maps",
"actionTarget":{
"target": "north.tbar",
"index": 3
}
}
The basic parameters are:
- category: the category to browse
- outputItemId the id of the tab to create in the tab panel. It must be unique for each instance of this plugin. Can be obmitted if only one instance is present.
Also you can change this parameters to allow the categories creation without prompt:
- tpl: template for the category view on the left
- attributeFields Array of Extjs form fields definitions for additional attributes for the resources. The attributes present in the resources will be automatically detected, but if you want to force the creation on these attributes, add the fields configuration to this array.
- buttonText: the text to show for the actionButton and tab title
- iconCls: Icon class for the actionbar and the tab
- leftPanelWidth: Ask user admin credentials for categories initializing. Default it's true.