« 加大你的后台编辑窗口 | Main | 在首页增加最新回复显示 »

安装Tagwire插件

本地下载Tagwire插件
安装很简单,解压后上传tagwire.pl文件到你MT的plugin目录就行了。
现在登录到MT后台,在plugin中应该可以看到这个插件了,现在我们来修改单篇文章模板使用这个插件。
编辑Individual Entry Archive模板,找到

<div id="more" class="entry-more">
<$MTEntryMore$>


在下面加上以下代码

<p>Tags:  <MTEntryTags>
<a href="http://www.technorati.com/tag/<$MTTag glue="," case_sensitive="1" encode_urlplus="1" $>" rel="TAG" title="TAG:<$MTTag$>"><$MTTag$></a>
</MTEntryTags>
</p>


保存并重建,好了,我们现在可以使用这个插件了。

怎么来建立Tag呢?
只要在编辑文章时在keywords窗口输入tag就行了,但MT默认是不显示keywords窗口的,我们现在来打开它。
在后台编辑文章页面的底部有一个Customize the display of this page的链接,如下图:
tag1.gif


点击链接后在打开的新窗口中做相应的设置就可以在编辑页面中显示keywords窗口了,如下图所示:


更多信息请参见官方网站

Tags:

Comments

关于Tag的输入格式,多Tag推荐使用逗号隔开,这样像Movable Type这样中间有空格的Tag就会做为一个Tag来识别,如果用空格的方式来输入多个Tag时,上面的例子将是做为两个Tag来识别。

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)