Stephanie Leary

Writer and WordPress consultant

  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Fascism Watch (2016-17)
    • Content Modeling for WordPress series
    • WordPress Hidden Gems series
  • Work
    • Portfolio
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →
  • About
    • Press Kit
  • Contact
    • Mailing List

Full-screen calendar view in Movable Type

January 20, 2003 Stephanie Leary

Part two: the full-screen calendar view

Examples: Mena, Mark, Maddy

and this blog

There are several ways to generate a monthly calendar with alternate days shaded – PHP, Javascript, the COL tag (IE only) and CSS. We’ll use the CSS way.

Examples: Mena, Mark, Maddy, HSC Events test blog

– Grab the code from Mark’s site, including the CSS file.
– Create a new index template for the calendar CSS and call the output file calendar.css. (If you change it, change the name in the template below.) You can use Mark’s code to test it, but you’ll want to customize this later. Link your template to the file calendar.css. (If you name it something else, change it in your template, below.)
– Save your new template. Don’t bother rebuilding yet.
– Create a new archive template and call it Full Screen Calendar or something. Copy the contents of your date-based or category archive templates (it doesn’t matter which one, but the individual template is not a good one to use). Add <link rel=”stylesheet” href=”<$MTBlogURL$>calendar.css” type=”text/css”> to your header next to the other stylesheet link. In the body, replace

and all its contents with Mark’s code.
– Save your template. It doesn’t need to be linked to a file. Don’t rebuild yet.
– Define a new monthly archive template according to the instructions in the MT user manual. (Step by step: Click Blog Config. Click Archiving. Clid Add New. Choose monthly as the Archive Type and Full Screen Calendar for the template. Click Add. When the original screen refreshes, click the radio button next to Full Screen Calendar. Save.)
– Now you’re done. Rebuild and check out your archives.

I’ve created a print stylesheet for the full-screen calendars; feel free to grab it. Use it like so:

On Mena’s calendar

Multi-month calendars

See also Essential Blogging, chapter 8 (“Advanced Movable Type”) pp. 192-194 for a thorough explanation of Mena’s calendar.

[updated March 6, 2003]

Blogging

Comments

  1. Zeb says

    June 11, 2003 at 4:24 am

    Bother… just realised where I made my mistake… go to http://www.asgard.gen.nz/bloc/archives.html instead Zeb sigh but it just lists all the entries and nothing else?

    I then created another index template file and called it Print Stylesheet and pasted the code you gave for it onto my arhives.html page, with no luck.

    Now I also see that my monthly archive pages have changed to include a calendar view for that month. Now I just need to figure out how to do the FULL calendar view. sheepish look Help?

  2. Peter says

    July 6, 2003 at 4:53 am

    My site is not yet finished as I am in the process of rebuilding it with MT… and I really, really, eally want to thank you for this calendar thing.. It was exactly what I was looking for!!!

    Thanks much!

Fascism Watch

The Fascism Watch is a daily(ish) news roundup. View all the previous Fascism Watch posts »

Latest WordPress Book

Content Strategy for WordPress

A short book for content strategists and managers on implementing a complete content strategy in WordPress: evaluation, analysis, content modeling, editing and workflows, and long-term planning and maintenance.

Read the sample chapter

Kindle Nook iBooks Kobo Smashwords

WordPress for Web Developers

WordPress for Web Developers (9781430258667)

This is a book for professional web designers and developers who already know HTML and CSS, and want to learn to build sites with WordPress. The book begins with a detailed tour of the administration screens and settings, then digs into server-side topics like performance and security. The second half of the book is devoted to development: learning to build WordPress themes and plugins.

This is the second, much-revised and updated edition of Beginning WordPress 3, with a more accurate title. Everything’s been updated for WordPress 3.6.

WordPress for Web Developers is out now. See what's inside...

The best WordPress features you’ve never noticed

  • WordPress Hidden Gems: Screen Options
  • WordPress Hidden Gems: Bulk Edit
  • WordPress Hidden Gems: Private Status
  • WordPress Hidden Gems: Dashboard Feed Readers
  • WordPress Hidden Gems: Options.php

Content Modeling for WordPress series

  • Content modeling for WordPress, part 1: analyze content
  • Content modeling for WordPress, part 2: functional and organizational requirements
  • Content modeling for WordPress, part 3: a sample content model

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Copyright © 2021 Stephanie Leary