-
Thank You Stephen! Works beautifully!
-
is it possible that include_bogs in the documentation a mispelling of include_blogs? I’m adding this to the Plugin directory now! :)
-
I’m getting broken links — missing the category name.
http://enlighteneddreams.fanworks.net/joint_fiction//together/index.phtml
instead of
http://enlighteneddreams.fanworks.net/joint_fiction/times_of_change/together/index.phtml
the archive type is already specified:
$entrylink = “">”;
(this gets fed into a function that does some php processing on the entry)
I also just realized I’m losing /all/ the category info, none of the entry’s categories show…
-
oops:
$entrylink = “<a href="<$MTEntryLink archive_type=”Individual” encode_php=”qq”$>"><$MTEntryTitle$></a>”;
-
It works ok, but now I’d like to regenerate the “main blog” each time a new entry has been posted in each blog.
Which is the easiest and more convenient solution?
-
The first paragraph in this plugin decumentation (the one that begins with “Note:”) describes how to do this…
-
Hey Stepan, is it possible to have certain blog entries show different MTtags depending on blog id?
for example, let’s say I have 2 blogs- I want to do this:
<MTGlobalEntries include_blogs="1,2">
if blog_id=1 then show this:
<MTEntryBody><MTEntryBodyMore>
if blog_id=2 then show this
<MTEnryBody><MTEntryID><MTEntryTitle><MTEntryExcerpt>
Is there a way to do this, or finagle it somehow?
Let me know- Jai@brinkofski.com
-
You should be able to achieve this using the Compare plugin.
-
I’m using your plugin because I really like the lastn_modified feature. I was wondering if you’d considered creating a lastn_modified plugin for MTEntries. I’ve run into several places, such as category archives, where I want to use the lastn_modified feature, but I just can’t use MTGlobalEntries.
-
Though the page says “This tag supports all the attributes of the MTEntries tag…” I replaced <MTEntries recently_commented_on=”10”> with <MTGlobalEntries include_blogs=”1,2,5” recently_commented_on=”10”> and saw everything between the opening and closing tag disappear in my output.
Is the “recently_commented_on” attribute supposed to work? If I replace the “recently_commented_on” with “lastn” I get output, though obviously not what I want in the end. ;)
-
Good catch. I’ve fixed this in version 1.05.
-
It works great now, thanks!
-
[I posted this in the MT support forums already, but I wasn’t sure where you checked most often, so I’m also posting here. Sorry for the annoying duplication.]
I’ve been using this successfully to generate my index pages for some time, but I’ve only recently tried to incorporate MTGlobalEntries into my Monthly Archive pages. Rather than breaking up the archives by month, it dispays ALL the entries (not just the ones for that month). I tried replacing MTGlobalEntries with MTEntries to see if there was something else srewing with the monthly breakout, but MTEntries rendered the entries correctly into the different months.
I just have a very simple table-grid formatted list of blog name, category, date, entry title, author name. Any clue what I’m doing wrong? I posted the relevant part of my template in this thread at the MT forums: http://www.movabletype.org/support/index.php?act=ST&f=20&t=12604
Thanks in advance for your help — and thanks for the awesome plug-in!
-
I have the same problem as previous poster. I`m currently trying to fix this by using MTIfEqual, but that’s painfull.
Can this functionality be added?
-
I’m looking into a fix for this issue.
-
Cool blog!
-
Is there any way possible to wrap all the entries within <MTIfGlobalBlog></MTIfGlobalBlog> with something? I have my main blog, and an inline quicklinks blog and I’m trying to integrate the two using your plugin. The only problem I have had is that I want all the quicklinks (blog id=2) in between 2 posts on the main blog (id=1) to be wrapped in a <ul>.
Right now I have something like
<MTGlobalEntries>
<MTIfNotGlobalBlog>[templates for main blog posts]</MTIfNotGlobalBlog>
<ul><MTIfGlobalBlog include_blogs=”2”><li>….</li>
</MTIfGlobalBlog></ul>
</MTGlobalEntries>
any ideas? I just need to figure out how to get something to wrap around the MTIfGlobalBlog and everything inside it. The above wraps each entry that MTIfGlobalBlog pulls off blog 2 and wraps it in its own ul.
-
good
-
I currently use the following code to determine whether or not to display a link to an entry’s comments:
<MTEntryIfAllowComments>
<MTEntryIfCommentsOpen>
<h4><a href=”<$MTEntryPermalink$>#comment”>[comments (<$MTSimpleCommentCount$>)]</a></h4>
</MTEntryIfCommentsOpen>
</MTEntryIfAllowComments>
If I use <MTGlobalEntries> instead of <MTEntries>, this code doesn’t work properly. If the comments are set to “none” then it correctly hides the link. If, however, comments are simply closed, it displays the link. This is not the correct behavior. It works as expected when using <.MTEntries>
-
Ok, I fixed my own problem. Here’s a diff to get it to work. I think this is pretty straightforward, but no warranty yadda yadda yadda…
@@ -72,6 +72,7 @@
EntryIfExtended => $_[0]->text_more ? 1 : 0,
EntryIfAllowComments => $_[0]->allow_comments,
+ EntryIfCommentsOpen => $_[0]->allow_comments eq ‘1’,
EntryIfAllowPings => $_[0]->allow_pings,
}});
});
@@ -242,6 +243,7 @@
DateFooter => $footer,
EntryIfExtended => $e->text_more ? 1 : 0,
EntryIfAllowComments => $e->allow_comments,
+ EntryIfCommentsOpen => $e->allow_comments eq ‘1’,
EntryIfAllowPings => $e->allow_pings,
EntriesHeader => !$i,
EntriesFooter => !defined $entries[$i+1],
Basically, it just seems like support for MTEntryIfCommentsOpen was omitted, so I added it :).
-
Great work on this plugin!
FYI, on my system using the exclude_blogs and lastn attributes together within an MTGlobalComments tag causes the lastn attribute to be disregarded.
-
It seems that GlobalCategories only shows categories that have posts. Am I missing something? I’d like to have it show all the categories, not just ones with posts.
-
The behavior is the same as MTCategories. If you want to see all categories, you need to specify a show_empty=1 attribute.
-
Is there an equivalent of MTGlobalAuthorEntryCount ? It would be a godsend :)
-
I guess I should say why. I have a page listing all authors of a multi-author blog, and I want to shwo the total # of posts for each author. Thanks! I started to try the MTTagInvoke plugin, but then I realized that MTGlobal doesn’t support teh ‘author’. um, object. Is that right?
-
Hi, I get this error on rebuild: MT::App::CMS=HASH(0x82f95dc) Use of uninitialized value at /home/sites/site4/web/mt/plugins/GlobalListings.pl line 204.
running MT 2.661 on Mysql
here’s the relevant part of my template:
<MTGlobalEntries>
<MTGlobalObjects include_blogs=”1,2,3,4”>
<MTIfGlobalBlog>
(some MTentry tags)
</MTIfGlobalBlog>
<MTIfNotGlobalBlog>
(some other MTentry tags)
</MTIfNotGlobalBlog>
</MTGlobalObjects>
</MTGlobalEntries>
thanks, great work.
-
Also, I linked 2 weblog’s (same MT install, diff folders) main index templates containing <MTGlobal…> tags to a single template, and when I update either, it does not rebuild the other’s index.html. The template link works since I make changes in one and it reflects in the other. Any hints?
-
I love Global Entries! I use it at Telegraph and X-POLLEN already as well as in most of my other sites to make in-house syndicated feeds.
Now I want to aggregrate all the posts to about six different blogs on my server but only if they are posted to a category called “foo.” (All the relevant blogs have an identically named foo category.)
I see that MTGlobalEntries doesn’t support category=”” and I don’t think MTGlobalCategories works the way I was thinking of.
Do you have any suggestions to implement what I want to do, or workarounds? Thanks!
-
I second xian that it would be tremendous if there was support for categories in MTGlobalEntries. That would make this very worthwhile for me. I confess to have no idea if that would be too diffilcult. Thanks for this plugin.
-
This seems like I must be missing this, but I’d like a way to have each entry on the page id blog it is coming from.
If there were a tag for this, I could have it show up as text, or use it to make different CSS classes and have them show differently through CSS… but it seems like I’m missing it. Is there no (this entry belongs to the weblog xxxxxx) or even (this entry belongs to blog_id # )???
-
Never mind, I found it. I can use
Sorry about that.
-
um, that shoulda been <$MTBlogName$>
-
Does this work with MT 3.1?
-
Thank you for your nice plugin!
But I have a problem that “$MTEntryModifiedDate” tag is not working between “MTGlobalEntries” and “/MTGlobalEntries”.
The “$MTEntryModifiedDate” tag shows the created date such as “$MTEntryDate” in this case.
Do you have any answer that I can show the correct date?
MT is 3.151-ja, your plugin is Global Listings 2.0.2.
-
I fixed it and put a diff with no warranty.
@@ -71,6 +71,8 @@
return _global_item(‘Entry’, $ctx, $args, sub { {
EntryIfExtended => $_[0]->text_more ? 1 : 0,
EntryIfAllowComments => $_[0]->allow_comments,
+ EntryIfCommentsOpen => $_[0]->allow_comments &&
+ $_[0]->allow_comments eq ‘1’,
EntryIfAllowPings => $_[0]->allow_pings,
}});
});
@@ -221,6 +223,7 @@
for my $e (@entries) {
local $ctx->{__stash}{entry} = $e;
local $ctx->{current_timestamp} = $e->created_on;
+ local $ctx->{modification_timestamp} = $e->modified_on;
my $this_day = substr $e->created_on, 0, 8;
my $next_day = $this_day;
my $footer = 0;
@@ -235,13 +238,15 @@
local $ctx->{__stash}{blog} = $blog;
local $ctx->{__stash}{blog_id} = $blog->id;
MT::ConfigMgr->instance->NoPlacementCache(1) unless $e->blog_id == $blog_id;
-
+ my $allow_comments ||= 0;
my $out = $builder->build($ctx, $tok, {
%$cond,
DateHeader => ($this_day ne $last_day),
DateFooter => $footer,
EntryIfExtended => $e->text_more ? 1 : 0,
EntryIfAllowComments => $e->allow_comments,
+ EntryIfCommentsOpen => $e->allow_comments &&
+ $e->allow_comments eq ‘1’,
EntryIfAllowPings => $e->allow_pings,
EntriesHeader => !$i,
EntriesFooter => !defined $entries[$i+1],
-
Thanks!
This ia just I am looking for! Cool plugin!