keypad after clicking 'start tour'

33 views
Skip to first unread message

JR

unread,
Jul 20, 2015, 11:21:47 PM7/20/15
to tap-d...@googlegroups.com
Is it possible to set the web app to go directly to the KeyPad after clicking on 'Start Tour'? I'd like to have the same default link as this: http://www.imamuseum.org/mobile-tours/#

Currently it appears that the default link when clicking 'Start Tour' goes to the first Stop.

Thanks! This is a fantastic application.


JR

unread,
Jul 20, 2015, 11:40:09 PM7/20/15
to tap-d...@googlegroups.com
I found that leaving the 'Root Stop' field empty in the Tour node allows the 'Start Tour' button to default to the 'Select a Stop' page in the web app. 

I'm now trying to find a way to get that to default to the Keypad page...

Kyle Jaebker

unread,
Jul 21, 2015, 9:02:27 AM7/21/15
to tap-d...@googlegroups.com
In the Config.js file add the following configuration:

tourSettings: {
        'default': {
            'defaultNavigationController': 'KeypadView',
            'enabledNavigationControllers': [‘KeypadView’, 'StopListView', 'MapView']
        },

That should make it default to the keypad. You can also add specific tours to that configuration to get different defaults per tour:

tourSettings: {
        'default': {
            'defaultNavigationController': 'StopListView',
            'enabledNavigationControllers': ['StopListView', 'MapView']
        },
        'tour-1': {
            'defaultNavigationController': 'KeypadView',
            'enabledNavigationControllers': ['KeypadView','StopListView', 'MapView']
        },
        'tour-37': {
            'defaultNavigationController': 'KeypadView',
            'enabledNavigationControllers': ['KeypadView', 'StopListView']
        },
        'tour-113': {
            'defaultNavigationController': 'KeypadView',
            'enabledNavigationControllers': ['KeypadView', 'StopListView', 'MapView']
        }
    },

Hope that helps.

Kyle

--
You received this message because you are subscribed to the Google Groups "TAP Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tap-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact Kyle Jaebker by reply email and destroy all copies of the original message.
Reply all
Reply to author
Forward
0 new messages