Discuss and get help with staggernation.com's plugins for Movable Type.
You are not logged in.
Similar to the way the list can be limited to certain categories, I'd like to see an option to limit the list to entries published in the last n days.
The site I am building will rapidly expand to thousands of entries, but the related links will always relate to recent items published either the same day or within just a couple of days. Those menus will quickly become unwieldy if I can't limit them.
Offline
Good idea. I had some more options planned for linked entries (limit by author and by publishing status, and sorting options), but hadn't thought of limiting by date--I'll add that to the list for 2.0. "N entries" as well as "N days" would be good, too.
Offline
Kevin,
If you could come up with a hack to accomplish this right now, I'd be willing to bear your children, wash your car, paint your house, whatever. I'd be forever indebted. The NPO I built this site for has been using it for two days and the related entry lists are already becoming unwieldy.
Here it is in action: http://media.progressnowaction.org/clips/2007/07/24/
Last edited by Janus303 (2007-07-25 06:55:46)
Offline
But will you paint my children?
Sure, I'll see if I can throw something together later today. Are the fields in question customized standard fields, extra fields, or both?
Offline
They are extra fields. Ten of them.
And yes, I will happily paint your children as well. I've heard that a super soaker and some tempera paint works well for kid-painting purposes. Quick, colorful, and non-toxic.
Offline
OK, try installing this plugin:
http://www.staggernation.com/mtplugins/ … esLimit.pl
It should limit the lists to only show entries from the past 2 days (and displayed in descending date order). To change the number of days, just edit this line toward the top:
my $days = 2;
Let me know how it goes...
Edit: I should clarify that it will show entries from the past 48 hours, not the past 2 calendar days. And it may be a bit imprecise due to Daylight Saving Time.
Offline
You rock! Just mail me fertilized embryos and I will return them fully painted in just 40 weeks!
Offline
They are getting some intermittent 500 errors this morning with the new plugin that seem to be load-related--i.e. more than five edit windows open at the same time. Can you recommend some troubleshooting steps?
The problem does seem to go away by disabling the plugin.
Offline
If you have multiple fields linked to the same blog, it's probably doing a lot more work than it needs to on any given edit page view--loading the same entries multiple times. I can try adding caching to improve this. Hopefully will have a chance later today.
Offline
Yes, they all come from the same blog. That may not always be the case--there may eventually be a national blog and individual state blogs if NPO's in other states choose to replicate this news clipping service, but for now it's all in one place.
Offline
OK, please try this version and see if it helps at all with the errors under heavy load.
http://www.staggernation.com/mtplugins/ … esLimit.pl
If not, there's one further simple thing I can try.
Offline
Sorry to take so long to reply.
It does seem to help with errors, but it is very slow.
It also has a major bug--if they set the first related entry field, the four other fields get set to the same value.
Offline
So, this version is actually slower than the first version? That's odd, if so... it was meant to speed it up. Anyway, I can fix that bug, at least.
Offline
Well I think the slowness might be ameliorated because they are moving to a better server.
Offline