[pmwiki-users] calendar date title converter

Hans design at softflow.co.uk
Thu Sep 8 14:43:40 CDT 2005


I am wondering if it is possible to create a custom markup variable
from the number string of a calendar page.
Say the page name is 20050908
then the markup variable {$CalendarTitle}
should be: 8 September 2005.
So a function needs to read the page name, and if it is eight digits
convert it to a readable date, which can be used for the markup
variable.
Then in a calendar page I can set
(:title {$CalendarTitle}:)
and have  a readable page title.
I suppose extracting $titleday $titlemonth $titleyear from the page name is
sufficient to create {$titleday} {$titlemonth} {$titleyear}
for use on the page, instead of {$CalendarTitle}.
How can I do that?
  
-- 
Best,
 Hans                          





More information about the pmwiki-users mailing list