MT-SomeDays 3.0.0 »
I have got to stop reading the Movable Type support forums. Too many enhancement ideas!
MT-SomeDays 3.0.0 introduces multiple blog support. Now you can include the contents of another blog, or the contents of multiple blogs, in your <MTSomeDays> container by using a new attribute.
<MTSomeDays blogs="1:2:3">
If you would like to include the contents of multiple blogs, separate the blog IDs with colons, as shown. If you don't include the blogs attribute, then only the current blog will be included in the container. This value does not have to be in order (3:2:1 is okay) and does not have to be a continuous range (1:4:5 is fine too). You can enter your current blog ID by itself, but as that's the default, doing so is somewhat redundant.
Dates are potentially problematic when they cross multiple blogs. The dates that are used in regards to system date or context dates are those from the blog with the container. The dates from other blogs are considered, however, if using the select="until" or select="since" attributes to pull in the first or last posting date in the range.
One important note: Categories are not supported across multiple blogs. If you include the MT-SomeDays tag in a category archive, then you will only get results from the current blog. This is because categories are blog-specific. Because of this, I've added an additional attribute to indicate that you don't want to use the category context, if it is present:
<MTSomeDays nocats="1">
If you would like to use multiple blogs on your category pages, then use this attribute to turn off the category context processing. This will allow the import of entries from multiple blogs, but it will disable the context category for that container.





















Comments (5)
I'm going to try your plugin. It looks great!
Is there an example of it in action somewhere on the Web?
Thanks!
Posted by S.D. on September 21, 2003 12:48 PM
Hi, I installed your SomeDays but can't figure out whether (and if so, how) it can do the following:
Display a small "new"-image when an entry is newer than the last n days (for example, an entry has been posted within the last 7 days),
I need this because I don't use dates in the entries and content is not updated every day, We use MT not for real blogging but for categorizing downloads for a game.
Could you tell me how to go about? Thanks!
Posted by Sproet on October 21, 2003 9:40 AM
For a new image, I'd suspect something like dual loops would work best. The first loop would be used to select data that's less than seven days, and the second loop would select data that's more than seven days.
Perhaps:
<MTSomeDays date="-7" select="since">
<MTSomeDays date="-8" select="-7">
Which would first move the date back 7 days, and select everything since that date. The second loop would move the date back 8 days and select the 6 days prior to that date (including that date for a total of 7). Within each of these loops you could use your typical MTEntries tags and format them as necessary.
Posted by Chad Everett on October 25, 2003 11:20 AM
First, thanks for SomeDays. I just put it in action on my blog www.everythingny.com and it worked like a charm.
Now a question: I'm trying to use SomeDays at a client site and with the exact same configuration I'm getting nothing. With simple code like this:
<MTSomeDays date="today">
DATE: <$MTSDWorkDate$>
</MTSomeDays>
The HTML that results is like this:
DATE:
</MTSomeDays>
</TR></TABLE>
Obviously this is not correct. Help!
Posted by Ari Paparo on October 31, 2003 4:26 PM
I spoke with Ari, and the problem turned out to be an issue with one of the required modules for SomeDays. Please remember to make sure that the required modules are installed properly prior to running SomeDays. If you're not sure, you can make use of the ModCheck plugin that I wrote which will quickly tell you if a module is installed correctly or not, as well as give you some information on troubleshooting the problem!
Posted by Chad Everett on November 5, 2003 11:24 AM