[ewiki] Re: Blogging (calendar commit)

I've committed the changes I can, but some need disscussion (and probably
revision)

Particularly I would like your input on my decision to make the calendar
page divider configurable.  I did this by implementing a set of defines like
so:

define("EWIKI_NAME_DIVIDER", "_");
define("CALENDAR_NAME_DIVIDER", EWIKI_NAME_DIVIDER);
define("CALENDAR_PAGE_TITLE_REGEX","/^(.*?)".preg_quote(CALENDAR_NAME_DIVIDE
R) ."\d{8}$/");

My calendar title plugin respects these settings similarly but also
redefines them.  

The search call also respects them like this:

&& ($result = ewiki_database("SEARCH", array("id" =>
$id.CALENDAR_NAME_DIVIDER.'20')))

The .'20' is a horrible hack that I would like to fix before I commit.  It
is there(and in a few other places) to differentiate between calendar pages
and other types of subpages such as from my aview_posts plugin which appear
as $id.'_POST'.$postnumber.  Perhaps it is necessary to check the SEARCH
results against the regex, but if there is another option please tell me.

Andy

> -----Original Message-----
> From: Andy Fundinger [mailto:andy@xxxxxxxxxxx] 
> Sent: Wednesday, May 19, 2004 9:54 AM
> To: 'ewiki@xxxxxxxxxxxxx'
> Subject: [ewiki] Re: Blogging
> 
> This is the calendar plugin as I use it today, I'll post an 
> explannation of the differences once I compare it to the CVS 
> version, but if you have time you could look at the diff to 
> see what I'm up to.
> 
> Also, I'd like comments on my &now; suggestion at 
> http://erfurtwiki.sourceforge.net/?id=ProposedMarkupChanges.
> 
> -Andy
> 
>  
> 
> > -----Original Message-----
> > From: Andy Fundinger [mailto:Andy@xxxxxxxxxxx]
> > Sent: Wednesday, May 19, 2004 4:52 AM
> > To: ewiki@xxxxxxxxxxxxx
> > Subject: [ewiki] Re: Blogging
> > 
> > I have a working blog plugin this morning and a day to 
> polish it some.
> > What I've done is basically a WikiNews style aview plugin 
> for calendar 
> > entries from the current page plus a few little tweaks, affected 
> > plugins
> > include:
> > 
> > /lib/subpages (new)
> > /lib/wikinews (new)
> > /page/subpages
> > /page/wikinews
> > /module/calendar
> > /aview/blog (new)
> > 
> > another E-mail will follow this one since I've been out of merge on 
> > /module/calendar for a while and I want to disscuss some of my 
> > changes, especially EWIKI_NAME_DIVIDER which had previously been 
> > rejected.
> > 
> > Andy
> > 
> > On Tue, 2004-05-18 at 18:08, Mario Salzer wrote:
> > > > installation.  I intend to do this with a tweaking of
> > Wiki news and
> > > > the rss plugin.  Do you have any other implemented or not yet 
> > > > implemented features I should look at for blogging?
> > Anything you've
> > > > thought about ...
> > > 
> > > I recently hushed over a few blog module descriptions in
> > other Wikis,
> > > and it appears that blogging page names typically look like
> > what our
> > > calendar plugin uses. However there is certainly no need to
> > pressure
> > > compatibility into there (though that would make sense).
> > > 
> > > Blogging is an mpi plugin in PhpWiki and OddMuse (or workalike at
> > > least) as far as I remember; though that shouldn't also
> > influence your
> > > decision, Andy.
> > > 
> > > For the rss thing I have to say, that I'd like to add a
> > more general
> > > rss plugin (an action plugin instead of the fragments/ 
> thing), that 
> > > would also emit atom on occasion (I'd force HTTP TCN even
> > if many RSS
> > > clients are dumb piggies). Eventually this will make a 
> lib/ thing, 
> > > named ewiki_rss(), and simply take an array of page $data[]
> > hashes to
> > > output a feed.
> > > However, if you build a special rss feed, then just do that
> > now, and I
> > > fix the eventual _rss() function later to meet your requirements.
> > > 
> > > mario
> > > 
> > > 
> > > 
> > > _________________________________________________
> > > Scanned on 19 May 2004 01:47:04
> > > Scanning by http://erado.com
> > 
> > 
> > 
> > 
> > _________________________________________________
> > Scanned on 19 May 2004 14:11:08
> > Scanning by http://erado.com
> > 
> 
> 

Other related posts: