[pmwiki-users] substr markup breaks with httpvariables

Peter Bowers pbowers at pobox.com
Fri Feb 5 01:08:13 CST 2010


Could it have to do with the order of processing of httpvariables in
comparison with markup expressions?

I tried it with a PTV for the {$:page} and it works fine, but I don't
have httpvariables installed so I couldn't test that...

-Peter

On Thu, Feb 4, 2010 at 8:25 PM, edwin marte <edwin.marte at leidba.com> wrote:
>
> I have a set of pages with a couple of  page text variables  (PTVs) on them
> of the form yyyy-mm-dd .
> I need to grab  year , month and day values from them to display in another
> page.
>
> I  have a page Test.0001 with  (:date:2009-02-15:)
>
> So if I point the browser to Main.Test?page=0001 (using httpvariables) and
> then write  {Test.{$?page}$:date} on it I get 2009-02-15 (working)
>
> then I try {(substr  {Test.{$?page}$:date} 0 4)} and I get    {Dec
>    it breaks somehow ,  I was expecting to get 2009.
>
> Any pointers on how to make substr markup work the way I'm doing it ? Any
> reason why it breaks ?
>
> Best Regards,
> Edwin
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>



More information about the pmwiki-users mailing list