NetTalk Central

Author Topic: Supress Pageheader menu or pagefooter on certain pages  (Read 3436 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Supress Pageheader menu or pagefooter on certain pages
« on: October 12, 2015, 10:54:23 PM »
Is is possible to suppress the pageheader or the menu or the footer when calling specific pages?
Assume I have a website http://test.com.
I have a NetwebForm called registration
If I have a menu choice for registration and click it I get http://test.com/registration. When the form displays
There is a PageHeader
There is the Menu displaying unhidden menu choices (home,Registration,Login)
There are the registration form fields
There is a Page footer

IF I give the potential user a direct link to http://test.com/registration I would like to hide one or more of PageHeader, Menu PageFooter, specially the Menu while displaying the Registration page since this distracts from what I want the user to do (fill in and accept the form).
Is there a way to temporarily do that and then restore the Menu/PageHeader etc after save?
Currently I have created another webserver with no menu http://test:81/registration which does what I want but I would prefer to have one application doing all.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Supress Pageheader menu or pagefooter on certain pages
« Reply #1 on: October 13, 2015, 12:46:39 AM »
Terry,
There's another thread today - "Suppress Header and Footer" - that answers your question.

But you can also set a condition on the menu so it won't display under certain circumstances. For example, I'm using the following condition on the menu. This ensures that the menu is not displayed when the user logs in for the first time and there's still some setup to be done before I give full access to the program:

Quote
p_web.GetSessionLoggedIn() = 1 and p_web.PageName <> p_web.site.LoginPage and p_web.PageName <> 'firsttime'

Peter