On Fri, Mar 27, 2009 at 2:59 AM, Linly <[email protected]> wrote:
>
> I'm working on the last few part of the WikiBlog solution. The blog
> achieve is one of it.
>
> I want a list showing all the post written in a certain year. I can
> manually use a info report doing the job:
>
> [(info report if='time {info.wikiblog::{+p}} from=2009/01/01
> to=2010/01/01' target=info.wikiblog)]
>
> This works great. Then I want the user input the year number they
> want. So I use a form to do it:
>
> [form]
> [text blogyear]
> [session info "report if='time {info.wikiblog::{+p}} from={=blogyear}/
> 01/01 to={ {=blogyear}+1 }/01/01' target=info.wikiblog"]
> [submit]
> [form]
>
> But it failed. Where did I do wrong?
Right here:
{ {=blogyear}+1 }
{ x+1 } is processed when the form is created in the page. Too early
ti insert {=blogyear} which it doesn't know until the form is
submitted.
Let's see, Hans and I added some features for post form processing, was it:
[session info "/=report if='time {info.wikiblog::{+p}}
from={=blogyear}/01/01 to={ {=blogyear}+1 }/01/01'
target=info.wikiblog=/"]
Though it seems obvious to me at the moment that we should have a
counter command to matche the counter function...
Cheers
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---