Well, it's just basic core functionality, not really an extension.
What we need is a snippets section somewhere where people could post
little demo snippets like this. The only thing is, I'm not sure where
to put them? The docs area would make more sense...

Cheers,
Dan


On Tue, Dec 1, 2009 at 3:55 PM, Markus <[email protected]> wrote:
> Have you added this to the solutions section? It's quite handy, I
> think.
>
> It's also an easy example to learn how to pass data and retrieve it.
>
> On Dec 1, 9:14 pm, The Editor <[email protected]> wrote:
>> Here's another snippet that distinguishes between the use of {now} and
>> the command time:
>>
>> [form]
>> [session load {now}]
>> [session time]
>> [session passdata time,load]
>> [submit]
>> [form]
>>
>> Page was loaded at [(time {?load} %c)]
>> Button was pressed at: [(time {?time} %c)]
>>
>> Cheers,
>> Dan
>>
>>
>>
>> On Tue, Dec 1, 2009 at 7:52 AM, DrunkenMonk <[email protected]> wrote:
>> > Any time.
>>
>> > On Dec 1, 12:58 pm, Markus <[email protected]> wrote:
>> >> Thanks a lot, DrunkenMonk, I got it working now!
>>
>> >> On Dec 1, 12:21 pm, DrunkenMonk <[email protected]> wrote:
>>
>> >> > [(time ...)] would give you the time on page load
>> >> > [session time] would give you the time on form submission.
>>
>> >> > The following code worked:
>>
>> >> > [form]
>> >> > [session time "|%H/%M/%S"]
>> >> > [session msg "Time when button was pressed: {=time}"]
>> >> > [session passdata msg]
>> >> > [submit]
>> >> > [form]
>>
>> >> > {?msg}
>>
>> >> > On Nov 30, 11:01 pm, Markus <[email protected]> wrote:
>>
>> >> > > Didn't succeed.
>>
>> >> > > Up to now I have been using this code:
>>
>> >> > > [session target "blog.{p2}.[(time {now} '%Y.%m.%d.%H.%M')].
>> >> > > {=filter_blog}"]
>>
>> >> > > I don't see how [session time] needs to be used here. In the docs I
>> >> > > only found: [session time "{now}|%m/%d/%Y"]. If there is only [session
>> >> > > time] there is no time function?! Getting the submission time with
>> >> > > {=time} also didn't work.
>>
>> >> > > Confused... Help, please!
>>
>> >> > > Regards, Markus
>>
>> >> > > On Nov 30, 12:55 am, The Editor <[email protected]> wrote:
>>
>> >> > > > Try putting a field in like [session time]
>>
>> >> > > > That should set the value to the timestamp of the form submission.
>> >> > > > Whereas {now} is the timestamp of the initial page load.
>>
>> >> > > > Cheers,
>> >> > > > Dan
>>
>> >> > > > On Sun, Nov 29, 2009 at 4:03 PM, Markus 
>> >> > > > <[email protected]> wrote:
>> >> > > > > Hi,
>>
>> >> > > > > I am using a form that contains {now}. Now is when the page is 
>> >> > > > > loaded.
>> >> > > > > Though what I want is the other now, the now when the form is
>> >> > > > > submitted. Possible?
>>
>> >> > > > > Regards, Markus
>>
>> >> > > > > --
>>
>> >> > > > > 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 
>> >> > > > > athttp://groups.google.com/group/boltwire?hl=en.
>>
>> > --
>>
>> > 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 
>> > athttp://groups.google.com/group/boltwire?hl=en.
>
> --
>
> 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.
>
>
>

--

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.


Reply via email to