Page Layout Plugin for Movable Type

The Page Layout plugin for Movable Type allows authors to select from more than one template (or "layout") for a given page or entry. For example, a web site may wish to suppress advertising on certain pages. This plugin would allow for the designer of that web site to create to different page archive templates - one with advertising and one without. The author or editor of the site can then choose which template should be used when rendering that page.

Download

Installation

This plugin is installed just like any other Movable Type Plugin.

Usage

When a blog contains only one entry or only one page archive template then this plugin is effectively invisible. However, once you add a second page or entry template, your edit screen is given a new field which you can modify the value of. This field is a simple pull down menu containing all of the templates available to use when publishing that entry or page.

Screenshots

Page Layout Plugin Screenshot

15 Comments

This is fantastic. Great work, Byrne. I'll try this out on a new project.

Awesome plugin!

One question though... I created a second entry archive and mapping but the option to choose did not display. Any idea what I may have done wrong?

The plugin does show as active in the system plugins list.

Thanks! RAT

Try upgrading to Page Layout 0.91 - that has been fixed.

Amazing plugin! It's very very very useful!

Thanks Byrne! That did the trick. Great plugin! SA wasn't thinking when they let you go.

Do you have any ideas on how I might go about setting a different entry template based on how old an entry is?

@RAT - That is an interesting idea. The only way I can think of implementing as you suggest if by using a set of <mt:if><mt:else></mt:if> blocks inside of your entry template. You could use a date format tag to produce a variable that contains a value you could hinge your if-statements on.

I can't set different archive mapping with Page Layout using different entry template? if I use Entry-1 template, the archive mapping will be /yyyy/mm/basename.html and if I use Entry-2 template, the archive mapping will be /category/subcategory/basename.html? Will you add this feature?

@Jackie - To be honest, this is not really the design intent of the plugin/feature. Archive maps are independent from the template for a reason. But I will keep your feedback in mind. If I stumble across a way to make this possible, I will do as you suggest.

This is exactly what I've been looking for! In creating new pages, I'd like to be able to select from a variety of templates, some simplified, some more complete. Thanks! I'll give it a try.

Hello Byrne,

Great work!

Didnt you have a plugin to config widget sets? (http://plugins.movabletype.org/widget-set-custom-field/)

I wonder if it is still ok because I am having errors with it at the latest movable type :)

Can you let me know what problems you are having with the Widget Set plugin on its project page so that I can help fix it?

Hi Byrne,

Great plugin, but now I've got a problem when republishing my MT 4.23 site.

I've got 99% of my pages using template page.v1. A few pages are then using template page.v2. Even when editing the pages, the drop down menu clearly says "page.v1" or "page.v2". However, they're all publishing with page.v2. I can manually fix them but that seems somewhat time consuming. Certainly this isn't the intended behavior.

Also, if there was a way to incorporate the template drop-down in the "batch edit" mode, I could easily work around this issue after a full site republish.

Thanks! -al.

I am going to be investigating a number of the issues reported above sometime this week. Thank you for your patience. Stay tuned.

As for incorporating the template ID in the batch edit mode, I will see what I can do, but no promises. :)

Can anyone leave a link to an example of what this looks like on a live site?

I need help. I created several page templates but when I publish pages and choose one of them I don't get the layout I chose. What could be wrong?

Thanks!

Leave a comment

what will you say?


Monthly Archives

Recent Comments

  • I need help. I created several page templates but when I publish pages and choose one of them I don't get the layout I chose. What could be wrong? Thanks! ...

  • Can anyone leave a link to an example of what this looks like on a live site? ...

  • I am going to be investigating a number of the issues reported above sometime this week. Thank you for your patience. Stay tuned. As for incorporating the template ID in the batch edit mode, I will see what I can do, bu...

  • Hi Byrne, Great plugin, but now I've got a problem when republishing my MT 4.23 site. I've got 99% of my pages using template page.v1. A few pages are then using template page.v2. Even when editing the pages, the drop ...

  • Can you let me know what problems you are having with the Widget Set plugin on its project page so that I can help fix it? ...

Close