Select to view content in your preferred language

Change the default landing page for the maps and apps gallery

2648
2
Jump to solution
05-21-2013 05:46 AM
CraigMcDade
Deactivated User
Is it possible to change the default landing page on the maps and apps gallery to show the "Gallery" page instead of the "Home" page onload?
0 Kudos
1 Solution

Accepted Solutions
MikeTschudi
Frequent Contributor
Hi Craig,

Your idea can be accomplished by having the app switch to the Gallery page at the end of the loading process and just before the loading screen is removed.  Go to the line configIndependentInitReady = true; and insert changeSubpage('Gallery', false); before it:

// Make the gallery the initial page changeSubpage('Gallery', false);  // Show the site by hiding the loading background configIndependentInitReady = true; hideLoading();


I added a branch to the map-and-app-gallery Esri GitHub repository that includes your idea in the latest version of the app.

Regards,
Mike

View solution in original post

0 Kudos
2 Replies
MikeTschudi
Frequent Contributor
Hi Craig,

Your idea can be accomplished by having the app switch to the Gallery page at the end of the loading process and just before the loading screen is removed.  Go to the line configIndependentInitReady = true; and insert changeSubpage('Gallery', false); before it:

// Make the gallery the initial page changeSubpage('Gallery', false);  // Show the site by hiding the loading background configIndependentInitReady = true; hideLoading();


I added a branch to the map-and-app-gallery Esri GitHub repository that includes your idea in the latest version of the app.

Regards,
Mike
0 Kudos
CraigMcDade
Deactivated User
Excellent. Works like a charm. Thanks!
0 Kudos