I tried too and yes it works. <br>problem is when trying to evaluate the httpvariable.<br><br>Anyway, I did a workaround (At first did not want the aproach but it will solve the problem) I will use a custom action with the name of the page.<br>
<br>So now I will Point Main.Test?action=0001<br><br>and then <br><br>year: {(substr {Test.{$action}$:date} 0 4)}<br>month: {(substr {Test.{$action}$:date} 5 2)}<br>day: {(substr {Test.{$action}$:date} 8 2)}<br>
<br>That Work for me !<br><br>httpvariables are great, I have tried to use them a few times in the past and they work at first but then when I try mixing with any other recipe they always bring something that does not work properly or a least the way expected. I would love to see httpvariables interact better with other recipes , extensions or plugins.<br>
<br>Thanks,<br>Edwin<br><br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 8:08 AM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could it have to do with the order of processing of httpvariables in<br>
comparison with markup expressions?<br>
<br>
I tried it with a PTV for the {$:page} and it works fine, but I don't<br>
have httpvariables installed so I couldn't test that...<br>
<br>
-Peter<br>
<div class="im"><br>
On Thu, Feb 4, 2010 at 8:25 PM, edwin marte <<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>> wrote:<br>
><br>
</div><div><div></div><div class="h5">> I have a set of pages with a couple of page text variables (PTVs) on them<br>
> of the form yyyy-mm-dd .<br>
> I need to grab year , month and day values from them to display in another<br>
> page.<br>
><br>
> I have a page Test.0001 with (:date:2009-02-15:)<br>
><br>
> So if I point the browser to Main.Test?page=0001 (using httpvariables) and<br>
> then write {Test.{$?page}$:date} on it I get 2009-02-15 (working)<br>
><br>
> then I try {(substr {Test.{$?page}$:date} 0 4)} and I get {Dec<br>
> it breaks somehow , I was expecting to get 2009.<br>
><br>
> Any pointers on how to make substr markup work the way I'm doing it ? Any<br>
> reason why it breaks ?<br>
><br>
> Best Regards,<br>
> Edwin<br>
><br>
</div></div>> _______________________________________________<br>
> pmwiki-users mailing list<br>
> <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
><br>
><br>
</blockquote></div><br>