Help - Search - Members - Calendar
Full Version: Skipping A Blog
Movable Type Community Forum > Additional Resources > Tips and Tricks
SouthSIDE Glen
Using MT 4.01, I'm trying to execute some display code displyaing the name and latest entry for each blog in a multi-blog setup. I have the basic functionality working fine by iterating through the blogs with an <MTBlogs> code block, but I need to skip one specific blog - i.e. not execute this disply code for this one blog. This blog is not the current/local blog, it's just a seperate one of a seperate nature than the rest.

I have tried using several permutations and syntaxes of <mt:if> trying to key on the blog's ID or other blog attributes (e.g. <mt:If name="MTBlogID" eq="3">), but it doesn't seem to like the use of tags for the name property, as the condition is never met. I have tried setting a variable beforehand and using that, but that didn't work either, I still did not get the tag value passed to the variable.

Am I doing something wrong syntactically? Can what I'm trying to do be done with MT conditionals? Could someone show me the way to something I'd think should be a slam dunk to do?

I can probably do this quite easy by using a little PHP code to manage the conditional, but I'd rather leave the resulting page as a pure ".htm" file if I could.

TIA for any help. smile.gif

G.
Su-
QUOTE (SouthSIDE Glen @ Feb 8 2008, 09:46 AM) *
Am I doing something wrong syntactically?


Yes: http://www.movabletype.org/documentation/d...erpolation.html
SouthSIDE Glen
QUOTE (Su- @ Feb 8 2008, 11:22 AM) *
QUOTE (SouthSIDE Glen @ Feb 8 2008, 09:46 AM) *
Am I doing something wrong syntactically?


Yes: http://www.movabletype.org/documentation/d...erpolation.html


OK, I used

CODE
<mt:setvarblock name="blogid"><MTBlogID></mt:setvarblock>
...
<mt:If name="blogid" eq="3">

and that seems to work fine. Thanks for the nudge towards using the wrapper tag as the function. I'm still getting used to MT's weird way of handling functional heirarchy. This situation helped.

G.
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-2008 Invision Power Services, Inc.