Easy Templating with Individual Entry Archives
If you're like me, you don't like to code in theory. You're constantly rebuilding your templates to be sure that everything looks the way you want it to. This is fine when you're working with an index template. You can simply rebuild that one template and view your changes. But making changes to your individual entry archive usually means a full site rebuild to see your changes, which can be a real problem if you've got alot of entries.
So here are two quick tips for experimenting with your IEA's:
The Single Entry Save
Hacking Movable Type describes this technique. Make the changes to your IEA template, then pick an old obscure entry and resave it. That entry alone will be rebuilt and you can view your changes. The only drawback to this approach is that if you're truly experimenting with your IEA code, you have to overwrite what's there and (hopefully) back up the working copy of the template code to your notepad. That's why I've taken to using the second approach.
An IEA as an Index Template
When playing with the code, I like the idea of building just one file in a "hidden" location (e.g. '_index.php') to avoid people having a "broken experience". When working on my archive page or my index, I'll usually copy the template code and create a new template and set it up to publish to my "hidden" location of choice. With this little tip, you can do the same thing with your individual entry archives.
Simply create a new index template and paste your your IEA template code into it. Set it to publish wherever you like (e.g. '_iea.php'). Then wrap the entire template in:
<MTEntries lastn="1">
...YOUR IEA TEMPLATE CODE...
</MTEntries>
You guessed it. We're putting the entire IEA template in the context of one entry, which is basically what your IEA is anyhow. When you're happy with your IEA, copy and paste everying except for the beginning and ending
(And if you don't like the way your last entry looks, just use the offset="x" attribute to push it back to previous entries.)
YourThoughts?
(Minutia)
- Author:Jesse
- Published:Sep 11, 2006
- Chapters:
- Previous:
- Next:
GetUpdated
ElseWhere
AllChapters
- 2 articles in the chapter Accessibility
- 6 articles in the chapter Announcements
- 4 articles in the chapter Blogging
- 7 articles in the chapter CMS
- 1 articles in the chapter Code
- 3 articles in the chapter CSS
- 15 articles in the chapter Design
- 4 articles in the chapter Downloads
- 1 articles in the chapter Freebies
- 1 articles in the chapter Gadgets
- 4 articles in the chapter Journeys
- 1 articles in the chapter Miscellany
- 59 articles in the chapter Movable Type
- 2 articles in the chapter Plugins
- 1 articles in the chapter Print
- 1 articles in the chapter Projects
- 2 articles in the chapter SEO
- 6 articles in the chapter Social Networking
- 1 articles in the chapter Standards
- 1 articles in the chapter Writing
BiteSize.blog
ReaderFavorites
- CSS Image Framing
- Tools of the Web Design Trade, Pt.1: Where to Begin
- Tools of the Web Design Trade, Pt.2: Building Trust
- 10 Tips For Creating Website Mockups In Photoshop
- Movable Type As A Desktop App
- Redesign, Part 1: The Logo
- Redesign, Part 2: Stylesheet Philosophy
- The Social Graph in Plain Language
- Writing Your Own Autobiography: The New Persistence of Information
- Designing eComm 2008

















