NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on October 24, 2023, 03:57:14 PM

Title: How to programatically change or set the Default Page
Post by: Richard I on October 24, 2023, 03:57:14 PM
Hi all
I want the user to be able to set which page in their NT application is the default or opening page
s_web._SitesQueue.Defaults.DefaultPage = 'IndexPage'
s_web._SitesQueue.Defaults.DefaultPage = 'LoginForm'

I note the setup happens in the INIT and presumably,  before session values are set.
Is there a way ?
Thanks
Richard
NT 14.09
Title: Re: How to programatically change or set the Default Page
Post by: Richard I on October 24, 2023, 05:28:18 PM
Sorted by adding a simple routine to OverrideServerSettings
Richard

SET(Manage)
Access:Manage.Next()
IF MAN:Something = 1
    s_web._SitesQueue.Defaults.DefaultPage = 'IndexPage'   
ELSE
    s_web._SitesQueue.Defaults.DefaultPage = 'loginform' 
END