Register Module in GeoCortex resource manager
I have created new custom module I follow steps for createing custom development but I don't know how I can register this module in geocortex.resourceManager there are encryption as a parameter in register method in geocortex.resourceManager.
In terms of use sample in code gallery this line for register view but I don't know how I can encrypt this view.
geocortex.resourceManager.register("TermsOfUse","inv","Modules/TermsOfUseLinkView.html","html","PGRpdiBjbGFzcz0idGVybXNvZnVzZS1saW5rLXZpZXciPg0KCTxwPg0KCQk8YnV0dG9uIGRhdGEtYmluZGluZz0ie0BldmVudC1vbmNsaWNrOiBkaXNjbGFpbWVyTGlua19DbGlja30iPg0KCQkJPGEgaHJlZj0iamF2YXNjcmlwdDp2b2lkKCkiPg0KCQkJCTxzcGFuIGlkPSJ0ZXJtc29mdXNlIiBkYXRhLWJpbmRpbmc9IntuYW1lOiBkaXNjbGFpbWVyTGlua317QHRleHQ6IGRpc2NsYWltZXJUZXh0fSIgLz4NCgkJCTwvYT4NCgkJPC9idXR0b24+DQoJPC9wPg0KPC9kaXY+DQo=");
Thanks,
Regards.
Ammar Assem.
-
Hi Ammar,
That line of code is actually emitted by our Resource Compiler tool. The string parameter you refer to is actually just a base64-encoded representation of your view.
If you're following the typical steps for custom development, you should be invoking the resource compiler against your custom code and HTML, and ending up with a JavaScript library containing all of your assets. This library file will have the calls to the ResourceManager at the bottom of the file (just like Mapping.js), and you can then configure your library to be included.
We introduced a splash screen in version 2.0 of the viewer, and this is actually quite easy to modify. If you look at the bottom of Index.html, you'll see the splash screen. A little ways above that is some code that handles dismissing the splash screen when the viewer is ready. Look for "dismissSplashScreen" - you can customize this logic to have the splash screen dismissed when the user clicks on the link in your disclaimer.
Hope this helps!
-Jason
0 -
Jason,
Would you be able to provide an example of how you customized the splash screen so that a user has to select "Accept Term" before the site opens?
Walter
0 -
I'd be interested to see the "Accept Terms" example also.
I'm also wondering if it's possible to customize a splash screen by viewer. If I change the splash screen logo icon in index.html it applies to ALL HTML5 viewers for all sites and I'd like to be able to customize it for different clients.
0 -
+1 on the Accept Terms example.
0
Please sign in to leave a comment.
Comments
4 comments