Plugins
: Global Listings 2.0.2
Jan 03 2003
| #
| C:44
Global Listings 2.0.2
January 3, 2003
- updated February 8, 2006
(Download)
This plugin allows you to list Entries, Comments, Categories and TrackBack pings across multiple blogs within one MovableType installation.
Important: If you want a page that contains <MTGlobal…> tags to be correctly rebuilt every time you update an entry or comment in a related blog, you must use the same template in each of the blogs. The easiest way to do this is to link the template to a file. All the affected blogs should link to the same file, so that you only have to edit it in one place.
General
MTGlobalListingsVersion
Returns the current version of the Global Listings plugin.
MTIfGlobalBlog
Conditional tag that is true if the current global object is not a member of the blog being built.
Used inside of MTGlobalObjects or MTGlobalObject tags.
MTIfNotGlobalBlog
Conditional tag that is true if the current global object is a member of the blog being built.
Used inside of MTGlobalObjects or MTGlobalObject tags.
MTGlobalObject
Container tag for the a specified object within any blog.
The following attributes are supported:
- id=”123”
Specifies the ID of the object.
MTGlobalObjects
Container tags that generates a listing of specified objects across multiple blogs.
In the context of a date-based archive, only object in the specified date range are listed.
The following attributes specify which blogs are included:
- include_blogs=”3,4,6”
Limits the objects to blogs specified in the attribute. The default behavior is to include all blogs.
- exclude_blogs=”3,4,6”
Excludes objects from blogs specified in the attribute. The include_blogs setting overrides the exclude_blogs setting.
MTGlobalObjectCount
Tag that returns a count of the specified object across multiple blogs.
In the context of a date-based archive, only object in the specified date range are counted.
The following attributes specify which blogs are included:
- include_blogs=”3,4,6”
Limits the objects to blogs specified in the attribute. The default behavior is to include all blogs.
- exclude_blogs=”3,4,6”
Excludes objects from blogs specified in the attribute. The include_blogs setting overrides the exclude_blogs setting.
Global Entries
- MTGlobalEntries
A container tag representing a list of entries/posts from multiple blogs in a MovableType installation. The actual list of posts can be configured using optional attributes to this tag. The default is to display the last 7 days of entries. This tag supports all the attributes of the MTEntries tag, with the exception of the category attribute.
In addition to the MTGlobalObjects attributes, you can also provide one of the following additional attributes:
- lastn_modified=”N”
Display the last N modified posts to this blog, where N is some number greater than 0. The lastn setting overrides the lastn_modified setting.
- MTGlobalEntryCount
Returns the number of entries in multiple blogs.
Accepts MTGlobalObjectCount attributes.
- MTGlobalEntry
Container for a single entry in any blog.
- id=”123”
Specifies the ID of the entry.
Global Comments
- MTGlobalComments
A container tag representing a list of comments across multiple blog. This tag supports all the attributes of the MTComments tag.
In addition to the MTGlobalObjects attributes, you can also provide one of the following additional attributes:
- MTGlobalCommentCount
Returns the number of comments in multiple blogs.
Accepts MTGlobalObjectCount attributes.
- MTGlobalComment
Container for a single comment in any blog.
- id=”123”
Specifies the ID of the comment.
Global Categories
Global Pings
- MTGlobalPings
A container tag representing a list of TrackBack pings across multiple blog. This tag supports all the attributes of the MTPings tag.
The tag accepts MTGlobalObjects attributes.
- MTGlobalPingCount
Returns the number of TrackBack pings in multiple blogs.
The tag accepts MTGlobalObjectCount attributes.
- MTGlobalPing
Container for a single TrackBack ping in any blog.
- id=”123”
Specifies the ID of the TrackBack ping.
Version History
- Version 2.0.2 - December 9 2003
Pin listings to date range inside of date-based archives.
Added listings: MTGlobalCategories,
MTGlobalPings.
Added counts: MTGlobalEntryCount,
MTGlobalCommentCount,
MTGlobalCategoryCount,
MTGlobalPingCount.
Added objects: MTGlobalEntry,
MTGlobalComment,
MTGlobalCategory,
MTGlobalPing.
Added MTIfGlobalBlog and MTIfNotGlobalBlog
conditional tags.
- Version 1.05 - September 9 2003
Fixed recently_commented_on.
- Version 1.04 - August 26 2003
Fixed sometimes-incorrect MTDateHeader, MTDateFooter, MTEntriesFooter when specifying include_blogs/exclude_blogs.
- Version 1.03 - July 28 2003
If lastn_modified is specified, default sort is modified_on.
- Version 1.02 - Jan 19 2003
Added lastn_modified attribute to MTGlobalEntries.
Fixed some warnings.
- Version 1.01 - Jan 16 2003
Added MTGlobalListingsVersion tag.
Fixed problem with categories not being present.
Added strict checking.
Version 1.0 - Jan 3 2003
Initial release.
-
41)
That “visible” fix was exactly what I was looking for. Thanks!
-
42)
I modified Globalisting.pl with the changes you mentionned, but junked comments are still count as having updated an entry, therefore screwing with my “recently-commented on” feature. Any other idea? Thanks
-
43)
To fix the “recently_commented_on” proble, you’ll have to modify the plugin, by adding visible => 1 on line 176:
Instead of:
{ 'sort' => 'created_on',
direction => 'descend',
unique => 1,
limit => $n } ];
it should say
{ 'sort' => 'created_on',
direction => 'descend',
visible => 1,
unique => 1,
limit => $n } ];
-
44)
I just upgraded to MT 3.34, and when I try to rebuild an index that uses this plugin, I get “Can’t use string (“”) as a HASH ref while “strict refs” in use at lib/MT/Sanitize.pm line 54.”
|
|