<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hans wrote:
<blockquote cite="mid1081527418.20070326172501@softflow.co.uk"
type="cite">
<pre wrap="">Monday, March 26, 2007, 4:40:01 PM, Sergio wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi, I get each day page the "YYYYMMDD" title, with really I hate it, more even
beacuse I speak spanish, where/how should I (could) change in order to get
somethihg to "25-03-07" for each day page?
</pre>
</blockquote>
<pre wrap=""><!---->
You could keep using the YYYMMDD format for the page names, but use a
different title format, so it displays nice:
Nice date titles:
add to config.php or local config file:
# add PageVariable {$DMYTitle}
$FmtPV['$DMYTitle'] = 'DMYTitle($pagename)';
function DMYTitle($pagename) {
$title = PageVar($pagename, '$Title');
preg_match("/(\d\d\d\d)(\d\d)(\d\d)/",$pagename,$m);
if(!$m[1]) return $title;
$tdate = mktime(0,0,0,$m[2],$m[3],$m[1]);
return strftime("%d %B %Y",$tdate);
}
then put into the calendar GroupHeader page:
(:title {$DMYTitle}:)
</pre>
</blockquote>
Wow, that works nice. Seems it ought to be part of the regular PMcal
code, with some mention that <br>
<pre wrap=""> "return strftime("%d %B %Y",$tdate);" can be switched to "return strftime("%B %d %Y",$tdate);" to get the format displayed of month day year.
</pre>
<pre class="moz-signature" cols="72">--
Always, Dr Fred C
<a class="moz-txt-link-abbreviated" href="mailto:drfredc@drfredc.com">drfredc@drfredc.com</a></pre>
</body>
</html>