I would like to have a link to all blogs on my toolbar. I want the first (current) blog to have a different css class and to be listed first. So I use the "exclude_blogs" modifier so I don't repeat the current blog link. I would like to write the code in a way that I don't have to hard-code the current blog id (i.e. "2" in this case).
TIA
<div id="nav">
<div id="nav-inner">
<ul>
<li class="home"><a href="<$MTBlogURL$>"><$MTBlogName encode_html="1"$></a></li>
<mt:blogs exclude_blogs="2">
<li><a href="<$MTBlogURL$>"><$MTBlogName encode_html="1"$></a></li>
</mt:blogs>
<li><a href="<$mt:Link template="archive_index"$>"><$MTBlogName encode_html="1"$> Archives</a></li>
</ul>
</div>
</div>
Reported on Movable Type 4.2
OK, I figured it out. I wasn't sure why mt:setvarblock wasn't working, until I noticed that I hadn't prefixed the variable with "$" inside the modifier. Um, Duh. The code is: