[pmwiki-users] Today Tomorrow the day after and so on

Hans design at softflow.co.uk
Mon Apr 3 05:46:03 CDT 2006


Monday, April 3, 2006, 11:26:07 AM, Firefly wrote:
> If the page name = todays date, show the page name linked to the page, first
> line of text. And what day today is?..

perhaps
(:if equal {$Name} {$Today}:)(:include {$FullName} lines=1:)(:if:)

or simpler:
(:include {$Group}.{$Today} lines=1:)

This assumes your page names have the same format than the {$Today}
page variable.

Please see all the various formatting options for time and dates at
the link about the php strftime function: http://uk.php.net/strftime

%A - full weekday name according to the current locale, so

# adds page variable {$Weekday}:
FmtPV['$Weekday'] = 'strftime("%A", time() )';


Best,
 Hans                           





More information about the pmwiki-users mailing list