I used this snippet to a really cool effect. Enter an author name in
the text box, and then check the boxes you want. You should get an
instant update of the author value on all the checked pages.
Hehehe... Lot's of fun stuff you can do in BoltWire!
Cheers,
Dan
[t width=100%]
[r][c top][(search group=test template="{+p2}: {+:author}")]
[c top][(search group=test template=check)]
[t]
/*
[[#check]]
[(template first)][form]
Author: [text author]
[(template each)][check status_{(counter output=true)} done] {+title}
[session target_{(counter = output=true)} {+p}]
[session if_{(counter = output=true)} "equal '{=status_{(counter =
output=true)}}' 'done' ? savedata_{(counter = output=true)}=author"]
[session savedata_{(counter = output=true)}]
[(template last)][submit][form]
[[#end]]
*/
On Thu, Sep 11, 2008 at 9:10 PM, Linly <[EMAIL PROTECTED]> wrote:
>
> Ahha, this must be come from my request on "How to set value to multi
> pages at once". But I never make it worked. I'm greatly interesting on
> this too.
>
> Cheers,
> linly
>
> On Sep 11, 10:34 pm, Martin <[EMAIL PROTECTED]> wrote:
>> I found this snippet in the archives here.
>> It is about a search that generates a list of pages, each with a
>> checkbox.
>> It works great as is with the msg command. I wonder how to get a
>> savedata or rename command into it. I tried different variations but
>> without success.
>>
>> > I probably shouldn't have but I took some time to pull together a
>>
>> simple demo of the basic approach you will need. Basically you will
>> want something like this:
>>
>> [(search group=test template=check)]
>>
>> /*
>> [[#check]]
>> [(template first)][form]
>> [(template each)][check status_{(counter output=true)} done] {+title}
>> [session target_{(counter = output=true)} {+p}]
>> [session if_{(counter = output=true)} "equal '{=status_{(counter =
>> output=true)}}' 'done' ? msg_{(counter = output=true)}={+title}"]
>> [session msg_{(counter = output=true)}]
>> [(template last)][submit][form]
>> [[#end]]
>> */
>> ---------
>>
>> For all checked pages - {=status_{(counter = output=true)}}' 'done' -
>> the title is displayed in the message box.
>>
>> Now it is the point to replace "msg_{(counter =
>> output=true)}={+title}" with
>>
>> savedata_{(counter = output=true)}={somedefaultvalue}" or
>> rename_{(counter = output=true)}={somedefaultvalue}"
>>
>> We are half way done here, it needs just a little hint to have another
>> perfect Boltwire solution (most people would try to solve this with
>> custom javascript, but this would be much better).
>>
>> Greetings, Martin
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---