[Fwd: RE: [pmwiki-users] Re: RE: Fixed: Error in cookbook rename function]

Joachim Durchholz jo at durchholz.org
Thu Jun 2 07:04:19 CDT 2005


Forwarded on request of original poster.

-------- Original Message --------
Subject: RE: [pmwiki-users] Re: RE: Fixed: Error in cookbook rename function
Date: Thu, 2 Jun 2005 14:01:46 +0200
From: Jan Jacobs <Jacobsjan at spector.be>
To: Joachim Durchholz <jo at durchholz.org>

Hello Joachim,

recently I subscribed to the pmWiki mailing list, but all my messages 
get rejected by the mailing list.  I wrote Patrick for information, but 
did not receive response as to this date.

Could you please post the following message to the list for me?  I would 
be very gratefull!

Thank you,

Jan Jacobs

----

Hello list,

i'm trying to implement a simple calendar (not the logbook functionality 
I found on the cookbook), but unfortunatelly I'm pretty new to pmWiki 
coding, php, and even regular expressions.

So far I managed to create a markup (:calendar:), which works similar to 
the calendar found in the cookbook, and I'm able to output a simple 
month calendar.  However, all code was ripped from other cookbook 
recipes, and my knowledge about the markup function lacks badly, so i 
need your help here :)

This is the markup call I use now: 
Markup('calendar','<title',"/^\\(:calendar:\)\s*$/e","view_SimpleCalendar(\$pagename,'')");

1) what is the meaning of the 2nd parameter, and how do I have to fill 
it correctly?
2) what regular expression do I need to make for a (:calendar:) or a 
(:calendar -1:) or a (calendar +4) markup that can be put anywhere in 
the typed text of a page, and which would result in the insertion of the 
result of my function call view_SimpleCalendar ???  How would I extract 
the extra parameter from the calendar markup and pass it to this function?



Thanks in advance,

Jan Jacobs






More information about the pmwiki-users mailing list