Help - Search - Members - Calendar
Full Version: Odd And Even With Multiblog
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
ltcanuck
Hello All,

I'm having a MultiBlog problem. I'm trying to make the second entry to be listed to have a different appearance then the other entries. ie. change the div tag. I've tried IF tags with the __odd__ and __even__ variable like the comment recipe in the wiki, but it doesn't work.

Here's my code:

On the main index:
CODE
        <MTMultiBlog include_blogs="1,2,4" lastn="3">
        <MTEntries lastn="1">
        <$MTInclude module="Entry Blog"$>
        </MTEntries>
        </MTMultiBlog>

In the Entry Blog module:
CODE
        <div id="blogs-item">
            <mt:EntryAssets>
            <a href="<$MTEntryPermalink$>"><img src="<mt:AssetThumbnailURL width="164" />" /></a>
            </mt:EntryAssets>
                   <h1 class="index-titles"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h1>
            <MTIfNonEmpty tag="EntryBody">
            <p>
            <$MTEntryExcerpt words="20"$>
            </p>
            </MTIfNonEmpty>
        </div>

Where and how would I setup an If statement to get the second entry to list the have a different css tag than the other 2 entries?

I just can't get it.

Thank You
shenews
I have no idea if this will help, but I've had better luck making multiblog deliver what I want it to do if I leave it unmodified and put the "include_blogs" on the tag that's going to do something the default values don't. Something like this:

CODE
<MTMultiBlog lastn="3">
<MTEntries include_blogs="1,2,4" lastn="1">
...


along with your adaptation of the comments on stripes.
CODE
<mt:if name="__odd__">
<div class="odd">
...

Just a suggestion, since I know you're probably trying everything you can think of.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.