Select to view content in your preferred language

initial load Maps and Apps Gallery

3516
6
04-25-2014 06:20 AM
Labels (1)
by Anonymous User
Not applicable
Original User: StauntonGIS

Morning folks,
Does anyone know how to customize the Maps and Apps Gallery that would make the "Gallery" tab the default/initial view as opposed the "Home" tab?

Thanks,
jb
0 Kudos
6 Replies
SaraHintze
New Contributor
Add a call to the changeSubpage function in the code following the require declarations, e.g. changeSubpage('Gallery', false);
0 Kudos
by Anonymous User
Not applicable
Original User: StauntonGIS

hi sara,
Thanks for replying.
I had tried that already but was not getting it to work.  I even tried rearranging the order of the <span> tags and that didn't seem to work either

From mapps.html:

<div id="tabBarExpander" class="tabBarExpanded rounded">
                            <div id="tabBar">
                                <span title="Home" class="tabBarTitle" onclick="changeSubpage('Home',true)">Home</span><img src="graphics/separator.png" />
                                <span title="Gallery" class="tabBarTitle" onclick="changeSubpage('Gallery',false)">Gallery</span><img src="graphics/separator.png" />
                                <span title="Submit Your App" class="tabBarTitle" onclick="changeSubpage('SubmitApp',false)">Submit Your App</span><img src="graphics/separator.png" />
                                <span title="About" class="tabBarTitle" onclick="changeSubpage('About',true)">About</span></div>
0 Kudos
SaraHintze
New Contributor
Hmmm. . . I have it working, and that is literally all I did. You can view the source code of this page if that would help: http://gis.lenexa.com/apps/mapsandapps/.
0 Kudos
by Anonymous User
Not applicable
Original User: StauntonGIS

I see what you did:

I did a find for "changeSubpage" in your source code and saw that you added

//Added this to switch to the Gallery page on load ('false'removes the city imagery on this page) -- S. Ballew, 4/22/2014
                    changeSubpage('Gallery', false)

to mapps.html
I never would have figured that out without you sharing the source code
Thanks very much
0 Kudos
by Anonymous User
Not applicable
Original User: StauntonGIS

rereading your post I see you said to add that call under the "require" but I still wouldn't have placed it properly without seeing your code.
Also, I mentioned I had tried that already...I had not...I had messed around with that call in the "Subpage" switcher section

Thanks again for responding to my post
0 Kudos
SaraHintze
New Contributor
No problem. Happy to help. 🙂
0 Kudos