Author Topic: Check for page type  (Read 1346 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?


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

Offline Ruud

  • Posts: 3665
  • 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.