Not a developer? Go to MovableType.com

Documentation

IfWebsite

A conditional tag that produces its contents when there is a website in context. This tag is useful for situations where a website may or may not be in context, such as the search template, when a search is conducted across all websites.

Example

<mt:IfWebsite>
    <!-- do something -->
<mt:Else>
    <!-- do something -->
</mt:IfWebsite>

You may be on this page because you want to use IfWebsite to test for a specific website. This tag will not do that, but this tag can be instrumental in making that determination. An expanded example:

<mt:IfWebsite>
    <!-- This is a website; now check if this is the website "My Awesome Website" -->
    <mt:If tag="WebsiteName" eq="My Awesome Website">
        <!-- Special handling for this website -->
    </mt:If>
<mt:Else>
    <!-- This is a blog -->
    <!-- do something -->
</mt:IfWebsite>
Back