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

Close