NetTalk Central

Author Topic: How to programatically change or set the Default Page  (Read 2466 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
How to programatically change or set the Default Page
« 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

Richard I

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
Re: How to programatically change or set the Default Page
« Reply #1 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