From: Magnus N. <ma...@no...> - 2004-08-27 16:21:30
|
Jim Nicholson wrote: > On 8/27/04 11:49 AM, "Magnus Nordlander" <ma...@no...> wrote: > > [long discussion of why Jim wants meta-creation-date deleted > to save bandwidth..] > > > > OK, I see how this could be useful. If the aquisition of the mtime > is done with a module overrideable user-function it wouldn't be to > hard to make what you want possible, would it? > > Magnus Nordlander > > That would do it for creation date. On the other hand, consider this: > Before the rawentries call back is invoked, a number of variables > exist that contain the post content and the "metadata" for that post - > the title, the date, the post pathinfo (the path to the source of the > article) etc. If it were (or maybe "is"; my php scoping knowledge is > rusty) possible to override the values of any of those variables from > within the rawentry callback, then (presumably) any number of > extensions could be implemented. Some general ideas might include: > > > * over-riding the display of the article on the main blog index > page to only include the first paragraph, or the article up to a > specific flag within the article, as the "seemore" plugin does > for blosxom. > * completely overriding the format specifications for a post file, > so that an entirely different post format could be used to store > data. One might would use this, for example, to write certain > posts as XML documents, with fields for the "category", "title", > "publication date", "abstract", and "content". > * Less ambitiously, implementing something like "macro" tags > within a post, so that frequently used markup can be easily > entered. (for example, on my blog I use this to change things in > posts like > > <media type="mp3" filename="foo.mp3">Betty's song</media> > > into markup like > > <div class="media"><a href="/media/foo.mp3"><img > src="/images/mp3.gif" border="0"/>Betty's song</a></div> > > > I'm just thinking out loud here, and haven't thought much of this > through, so if it's chasing moonbeams, just bring me back to earth. > > = Jim > > > > -- > /me gets his lasso and brings Jim back to earth :P Those things are already possible using post-formatters. The only reason date needs to be treated separatly, is because posts get sorted and selected by date. Magnus Nordlander |