让MovableType在首页显示特定的Widgets

| No Comments | Previous

  我曾介绍过使用SimpleLink当作 MovableType 的友情链接插件 来使用,但是这个友情链接除了会在主页上显示外,还会在其他页面上显示。这回我找到了解决的办法,让MovableType在首页显示特定的Widgets。

  编辑只在首页显示的 Widgets 模板代码,在模板代码的最前面加上 <mt:If name="main_index">  ,在模板代码的最后加上 </mt:If> ,重建所有页面后就只有首页显示这个Widgets了。效果可以看本站的友情链接。

本文结束。

Leave a comment


Pages

Powered by Movable Type 4.34-en

About this Entry

This page contains a single entry by ぬ噜噜噜噜ゅ published on September 4, 2009 1:31 PM.

Installing DBD::mysql on Windows was the previous entry in this blog.

中国联通资讯互动平台 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.