Changing Number of Columns on a Page

Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can change layout depending on the content.

What you need to do is set the page_layout at the start of the page like so:

<MTSetVar name="page_layout" value="layout-wt">

the value can be any of the following:

layout-wtt <-- Wide, Thin, Thin
layout-twt <-- Thin, Wide, Thin
layout-wt <-- Wide, Thin
layout-tw <-- Thin, Wide
layout-wm <-- Wide, Medium
layout-mw <-- Medium, Wide

 

By placing the code in a conditional statement and using private tags you can change the layout of pages or entries just by setting a tag.

2 Comments

Is there anyway to get a one column layout?

This is something I looked into and ended having to define my own custom style for. So, the answer is "no", but it shouldn't be too difficult.

Of course the stylesheet for any theme declares what layouts it supports. So if you augment a stylesheet to support 1-column, then edit the head of the stylesheet itself to indicate that the classname used for 1-column layouts.

Leave a comment

Gallery

Recent Entries

  • Getting Help with Movable Type

    No matter what the product or service, at some point in time your are going to be staring at a strange error message, a dead...

  • Changing Number of Columns on a Page

    Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can...

  • Creating a Clickable Header in Movable Type

    A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to...

  • So You Want To Write A Movable Type Plugin?

    One of the great things about Movable Type is it's flexibility. Behind the scenes is a powerful system that can be used to expand the...

  • Learning to Share

    Today I have added functionality to this site and to Darren Kenny Paralympic Cyclist that makes it easier for visitors to share the love and...

Close