user-pic

MultiBlog:显示全部用户的文章

Vote 0 Votes

mt plugin MultiBlog和我上次说的wholesystem 插件一样,都是用来显示全部用户的文章。也就是当Movabletype开设了多Blog时,这个插件能够将所有Blog的新文章通过一标签显示在单个博客中。

不过这个multiblog 的标签功能比wholesystem 多了很多:

Template Usage:
MTMultiBlog
MTMultiBlogIfLocalBlog
MTMultiBlogIfNotLocalBlog
MTMultiBlogEntries
MTMultiBlogComments


具体操作:
1、下载multiblog插件,将文件上传到Blog的plugins和php目录中
2、将显示文章的页面用一个Blog的Index模板来管理
3、在显示文章信息的地方嵌入如下代码:

<h2>Latest Entries</h2>
<MTMultiBlogEntries lastn="5">
<a href="<$MTEntryLink$>"><$MTEntryTitle$></a> on
<a href="<$MTBlogURL$>"><$MTBlogName$></a><br />
</MTMultiBlogEntries>


4、重建这个页面就会看到所有Blog作者按时间排序的文章列表(显示5条,可通过lastn参数调整数量),MultiBlog 实际上创建了一个情景标签,在这个标签之内,你还可以使用:
MTMultiBlog is a MTBlogs replacement that allows the user to specify which blog or blogs they wish to access.

include_blogs: a comma seperated list of blog ids to include (e.g., "1,3,4")
exclude_blogs: a comma separated list of blog ids to exclude (e.g., "2,5")


来控制要显示博客和不显示的博客,标签如下:
<MTMultiBlogEntries lastn="5" include_blogs="370,368,369,371,372,373,374,375">


如果你想让显示的博客文章按博客顺序(不是按文章发表时间)排列还可以使用下面标签:
<h3>Side Blog</h3> 
<MTMultiBlog include_blogs="1,2,4">
<MTEntries lastn="10"> 
<div class="entry"> <h4><$MTEntryTitle$></h4> <p><$MTEntryBody$></p> </div>
</MTEntries>
</MTMultiBlog> 


上面标签的意思是在页面中显示blogid=1、2、4的博客文章,其他具体设置方法可查看MultiBlog 插件官方说明

这个插件还能根据用户更新文章自动重建首页,解决了及时性的问题。
设置方法:进入博客后台“设置”“插件”设置: MultiBlog,选择后点击Add Trigger 保存即可。

Add a Reply

Forum Groups

Blogcs 基于MT平台的BSP

MovableType 中文化

1 0

Last Topic: Movable Type 中文化 - 平生一笑 by bb on 2008年10月11日

1 0

Last Topic: Zhu8's Weblog:猪八的网:浮生志 by Zhu8 on 2008年10月16日

MovableType 问题咨询

Be the first to post a topic in this forum

MovableType 使用

16 11

Last Topic: Image::Magick 模块的安装 by bb on 2008年11月 9日

30 35

Last Topic: MT-Twitter:将MT文章同步到Twitter by bb on 2008年3月 9日

22 1

Last Topic: 修改MT的作者归档路径 by bb on 2008年10月25日

MovableType 模板

Be the first to post a topic in this forum

22 17

Last Topic: MovableType评论格式化 replies-to-replies by bb on 2008年10月15日

MovableType 延伸

14 17

Last Topic: 从Wordpress转移到Movabletype by bb on 2007年5月12日

2 2

Last Topic: 最新版MovableType 4.22 已经发布 by bb on 2008年11月19日