Here we go...
To implement two-per row (or however many you want) I suggest you use the Round Robin plug-in for Movable Type. This is a perl plugin and therefore it will not work if you use dynamic publishing, however, if you use dynamic publishing its easy too because you can simply use PHP.
First, you may download the Round Robin plugin here.
Now, how does this plugin help you get multiple entries per row? Simple, use Round Robin to alternate which style is assigned to each entry.
For simplicity this tutorial makes use of three stules. The first is the Entry Container. Feel free to use any of the hundreds of styles already assigned in a standard MT template.
Entry Container
#entry-container {
margin: 10px;
padding: 10px;
width: 700px;
border: thin solid #990000;
background-color:#FFFFCC;
overflow:hidden;
}
This one is very sinmple and I won't really be covering it.
Next, you need to create two additional styles that will make up each row.
Entry-Left and Entry-Right classes
.entry-left,
.entry-right {
position:relative;
width: 310px;
height:200px;
overflow:hidden;
border: thin solid #990000;
background-color:#FFFFFF;
padding:10px;
margin:5px;
}
.entry-left {
float:left;
}
.entry-right {
float:right;
}
Using Round Robin we can alternate the entries, two per row. How? By modifying our templates of course!
1. Locate the <MTEntries> tag in your template. Immediately preceding (that means above) place the following code:
<MTRoundRobin set="left right">
Now, let's setup some example code like what we would find in a MT template:
<MTRoundRobin set="left right">
<MTEntries>
<div class="entry-<MTRoundRobin>">
<h1><a href="<$MTEntryLink$>" title="<$MTEntryTitle$>"><$MTEntryTitle$></a></h1>
<p><$MTEntryExcerpt$></p>
</div><!-- class="entry-left/right"-->
</MTEntries>
Now, let's see this in action:
Here is a video I shot at The Walk before the Miami game last weekend. This clip doesn't show the team very well but shows the thousands of people that were out cheering on our team.
If you know where other video footage or pictures are please email me or leave a comment below. I have a lot more video from the day and plan to post it at some point soon.
On the way into the game my friend Patrick decided it would be a good idea to take a short cut through the WVU tailgate. As you can see in the video, I was the only Hokie around. I have to say that the WVU fans were really quite nice this year. As we walked through they were very excited to have me there and were offering words of encouragement.
I discovered this game a few months back and have since plowed countless hours into it. Be careful, if you like crosswords or word scramblers you may get hooked on this one too. I go to WEBSODOKU for all my puzzles.
Summer of '91; my best friend Chris Riegger and I are hunched over my slightly old but still fully capable i386DX with a blazing fast 14.4 kilobits per second connection. Only 28 days until the start of 8th grade at Gayle Middle School (Stafford Middle for Chris). The day marked the 186th consecutive day we had logged in. I had already slayed the dragon and had been reset tolevel one.
And that's all there is to it!