include_websites

Use this modifier in loop tags to include specific or all websites in the Movable Type. "site_ids" works same as "include_websites".

include_websites="all | WebsiteID"
site_ids="all | WebsiteID"
  • A string of comma-separated website IDs selects specific websites.
  • The string "all" selects all websites.

You can use the include_websites and exclude_websites attributes together in Movable Type 5.1 and later.

Examples

 <ul>     
  <mt:Pages include_websites="all" exclude_websites="2">
    <a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a>
  </mt:Pages>
 </ul>

  <ul>
  <MTWebsites exclude_websites="2">
     <li><a href="<$mt:WebsiteURL$>"><$mt:WebsiteName$></a> <span class="count">[<$mt:WebsitePageCount$> pages]</span></li>
  </MTWebsites>
</ul>
This page was last updated on 2011-05-23, 08:08.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.