how do I copy toolbar to another site
I've got 12 sites(H5 viewers) all that need identical toolbars (only the datasets change). How can I copy a configured toolbar to the other sites?
0
-
I don't think that there's an interface for this operation in the Rest Manager, so you'll need to copy-and-paste the configuration out of the json files in the viewer.
You might be interested in this wonderful write up (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=906f2000000fyDMAAY) from Wayne a couple months back in response to the similar question "How possible is it to create a custom preset toolbar?".0 -
Thanks for the link. For my needs, I've found I only need to copy the "moduleName": "TabbedToolbar" and whipped up a python script to make a back up and the changes. I noticed a "CompactToolbar" module others may value and I assume the tablet and handheld json files work similarly, but haven't checked.
Another plus is that the changes in the desktop.json.js file are visible in the rest manager in case you need to make further adjustments (I saw a post that said the contrary).0 -
The other json files do work similarly except that I don't think that the handheld has an option for compact v tabbed. The rest manager reads (and writes to) these configs so the changes will be reflected there, be sure not to accidentally overwrite your text editor changes though. Having the config read by the rest manager, then changing the config file manually, and then making changes in the rest manager may lead to you duplicating some work if you're not careful haha. Rest manager will also kindly tell you that your config is misformatted by not loading the tools, FYI. 0
Please sign in to leave a comment.
Comments
3 comments