[pmwiki-users] why does this work ?? ( was : working with page variables )
dausha at gmail.com
Wed May 17 10:40:48 CDT 2006
Yes, but is "$EventDate2" ever set? There's a good chance it is not
being set when $FmtPV['$EventRealDate'] is being set--therefore
strtotime() returns either Jan 1, 1970, or error (I can't remember
On 5/17/06, Marco Ferretti <marco.ferretti at gmail.com> wrote:
> Hi all.
> I managed to get to my point . Now I am a little bit confused .
> How comes that :
> $FmtPV['$EventDate2'] = 'StripName($pagename)';
> $FmtPV['$EventRealDate'] = 'strftime("%Y-%m-%d", strtotime($EventDate2)))';
> doesn't work and
> $FmtPV['$EventRealDate'] = 'strftime("%Y-%m-%d",
> works ??
> I mean that in the first case I am having always the same date.
> My question is : is there some evaluation flow I am missing ?
> My point is that, since I need EventDate2 too for (:pagelist:) formatting, it
> seems pointless to me to evaluate StripName($pagename) twice ( not talking
> about the speed when dealing with lots of pages ... ) . What am I missing ?
> Man is the only animal that blushes -- or needs to.
> -- Mark Twain
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
" Mundus vult decipi, ergo decipiatur"
More information about the pmwiki-users