WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Check for page type
  • Print
Pages: [1]   Go Down

Author Topic: Check for page type  (Read 3902 times)

Offline Nyborg

  • Posts: 8
Check for page type
« on: June 14, 2009, 05:48:24 PM »
I would like to arrange my template according to page type, but cannot see how I can check what kind of page type the current page is using.

In particular I want to be able to remove left and right sidebars when I am wrapping another website.

Does anyone know an easy answer to this challenge?

Regards,

Svend
« Last Edit: June 14, 2009, 05:52:22 PM by Nyborg »
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Check for page type
« Reply #1 on: June 14, 2009, 10:43:34 PM »
I am afraid there is no such thing as a "page type".
A page has one or multiple sections. The sections will have a named type, the page doesn't.

The simple solution:
You could assign a different template to the page you want to have using a different template.

Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Check for page type
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2