eygle.com   eygle.com
eygle.com  
 

« January 13, 2006 | Blog首页 | January 16, 2006 »



January 14, 2006

安装MultiBlog插件 整合发布多个Blog

作者:eygle

出处:http://blog.eygle.com

今天安装了MTMultiBlog插件,终于可以把多个Blog整合在首页发布了.至此原来的第一版,第二版,第三版等静态页面已经全部整合动态发布.

MultiBlog的好处在于,可以把多个MT Blog的内容进行汇总.从而实现了跨blog的信息整合.同时MultiBlog插件还允许进行访问控制和重建触发控制等.

通过MultiBlog提供的Tag定义,可以在一个Blog模板中引用其他Blog的内容,类似如下定义:

<MTMultiBlog include_blogs="1,4,6">
<MTEntries lastn="5">
<LI class="colheader"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br>
</MTEntries>
</MTMultiBlog>

也可以使用如下标签顺序显示最近更新的文章:
<MTMultiBlogEntries lastn="5">
.....
</MTMultiBlogEntries>

这个插件也可以控制要显示博客和不显示的博客,标签如下:
<MTMultiBlogEntries lastn="5" include_blogs="1,3,5,6">

与作者所说不同的是:That will bring together the 5 latest entries from blogs 1,4 and 6 (not 5 each, but the 5 latest overall).

测试的结果是每个Blog都有5篇输出.所以这个数字最终需要调整.

.

 

Posted by eygle at 2:07 PM | Comments (6)



CopyRight © 2004-2008 eygle.com, All rights reserved.