[pmwiki-users] why does this work ?? ( was : working with page variables )

Marco Ferretti marco.ferretti at gmail.com
Wed May 17 12:12:24 CDT 2006

On Wednesday 17 May 2006 17:27, Américo Albuquerque wrote:
> Hello
> In the first case you're using an unitialized variable ($EventDate2) in
> your statement. You have to keep in mind that creating a
> $FmtPV['$EventDate2'] variable is not the same as creating a
> $EventDate2. The same reason why you can't simply use $Group or $Name
> variables in PHP.
> You can try to use PageVar to get your variable, something like:
> $FmtPV['$EventRealDate'] = 'strftime("%Y-%m-%d",
> strtotime(PageVar($pagename, \'$EventDate2\')))';
> Regards,
> Americo ALbuquerque

So, for instance, if I create a variable $TEST : 

$EventDate2 = 'StripName($pagename)';
$FmtPV['$EventRealDate'] = 'strftime("%Y-%m-%d",strtotime($EventDate2 )))';

this would work ?

You worry too much about your job.  Stop it.  You are not paid enough to 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060517/a9278979/attachment.bin 

More information about the pmwiki-users mailing list