Re: hardcoding mtimes for stories in their metadata section
Tim Gray <tgray-kfNaf1zyJtt8UrSeD/[email protected]> Mon, 1 Nov 2010 10:49:41 -0400
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Nov 01, 2010 at 03:32 PM +0100, Dieter Plaetinck wrote: > What would be pretty cool, is if the pubdate is in the future, don't > show the story. this would allow me to time precisely when i want to > publish a story at some point in the future. That would be convenient. It's probably easily done by looping through entrylist at some point and comparing the current time to the post's time. If the post's time is later than the current time, remove it from entrylist. I'm not sure which cb_xxxxx would be best suited for this. I would think it should be done in a function that actually returns entrylist. cb_sortlist would probably work nicely. I'd add the check right before entrylist is reconstructed from entrylist2 in my plugin. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev