-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Home Page] Modify the home page #602
Comments
You can hide/show a plugin using disablePluginIf in configuration. For Contexts plugin (the tab) you can configure it as following:
This is effectively not explcitly allowed by the configuration options available. You can workaround this problem by configuring the "Dashboards" plugin in localConfig.json like this by adding the override part:
You can hide the button in "Dashboards" tab by setting showCreateButton to false in "Dashboards" plugin cfg to make it disappear. Documented here. After these 2 changes, you Dashboards plugin configuration will look like this:
|
@tdipisa , thank you so much, I will try. |
@tdipisa I 've tested yet and disable "Maps" but enable "Dashboards , Geostories and Contexts " with the option
Result is : Filter is applied and I don't see Geostories why I am MAPSTORE_ADMIN Why ? Is it a bug ? Filter is applied and I don't see Geostories (OK) , I don't see buttons for editing (OK), Another question : Is it possible to change the tabs's order ? I'd like to have contexts first. |
you can try by including the following line in the monitorState property in localConfig:
Probably the reason is this and it should allow you to use the role for disablePluginIf. As far as the order of tabs is concerned, you could try to override the current position by setting the Contexts tab as the first one as follow in configuration:
|
Thank you so much, I've tested this parameters and it works 👍 . |
@catmorales please put that somewhere in the future documentation :) |
Description
We will allow users to access the home page on March 1st.
In a first time we want to
For the last point it is OK, it is possible to restrict to ADMINISTRATORS this functionnalities with "cfg.allowedRoles" as described in https://mapstore.geosolutionsgroup.com/mapstore/docs/api/plugins#plugins.CreateNewMap
Documentation missing : Documentation don't speak about geostories but it seems to be the same behaviour as maps and dashboards
For the first point we didn't see how to restrict maps and geostories tabs to ADMIN only.
Is this possible ?
This should be the best manner to restrict the tabs.
Bugs:
In the localConfig.json we have been able to quit all the lines about geostories and maps but something is wrong :
Documentation section involved
Other useful information
Bugs ans documentation
The text was updated successfully, but these errors were encountered: