This works like a charm :-)
Thank you (again, a lot ;-) )

Le mardi 30 septembre 2014 16:05:35 UTC+2, Dan a écrit :
>
> I think I made a mistake in the syntax. The reset command should look like 
> this:
>
> [command reset title="{=title}'s friends"]
>
> The equal sign actually is better because it allows you to change multiple 
> fields at the same time.
>
> Let me know if this works... If not, I'll look into it some more.
>
> I also changed the reset command slightly for the next release with these 
> two lines:
>
> if (isset($_POST[$f])) $_POST[$f] = $v;
> elseif (isset($BOLTcommands[$f])) $BOLTcommands[$f] = $v;
>
> But that shouldn't affect your form. I've also updated the docs.
>
> Cheers,
> Dan
>
>
>
> On Tue, Sep 30, 2014 at 1:30 AM, Tiffany Grenier <[email protected] 
> <javascript:>> wrote:
>
>> Hi Dan,
>> The reset command did not seem to work (the group page title was still 
>> the user pseudo),but apart from that, you suggestions worked like a charm, 
>> Thank you very much!
>> Cheers,
>> Tiffany
>>
>> Le jeudi 25 septembre 2014 09:54:22 UTC+2, Tiffany Grenier a écrit :
>>
>>> Hi Dan,
>>>
>>> The updates you did to the documentation are just fantastic, but there 
>>> is still something I am unable to do, and I don't know if that's because of 
>>> me, or just because you didn't intend it to be used that way. I have to use 
>>> cases related to that, that could probably be solved the same way (by 
>>> giving a default/template value when using savedata).
>>>
>>>
>>>    1.  I want to create "groups of friends", such that each time a new 
>>>    user X registers, there is a new group called "X's friends" that other 
>>>    members can join (I didn't add yet the condition that X cannot join the 
>>>    group of his friends, but can manage it).
>>>    Therefore, my registration form looks like this (translated in 
>>>    English):
>>>    <box>[form]
>>>    [t]
>>>    [r][c]Pseudo:
>>>    [c][text title required=true]
>>>    [r][c]Username (like the pseudo, but without spaces, caps, accents or 
>>>    special characters)
>>>    [c][text id required=true]
>>>    [r][c]Password:
>>>    [c][password password required=true]
>>>    [r][c]Email (optional)
>>>    [c][text email]
>>>    [submit value=REGISTER]
>>>    [t]
>>>    [command authkey register]
>>>    [command register title,email]
>>>    [command passdata id,register]
>>>    [if ! editor][command login][if]
>>>    [command authkey creategroup]
>>>    [command create page="group.friendsof{=id}"]
>>>    /* Here I would like to be able to call savedata in a special way so 
>>>    the newly created group's page title is "{=title}'s friends"*/
>>>    [form]</box>
>>>    If such a thing is already possible, with or without using savedata, 
>>>    what should I change?
>>>    2. I want the users to be able to create pages about characters, 
>>>    with the particularity that the title of the page is, by default, 
>>> composed 
>>>    of some fields of the page Namely, unless the title have been manually 
>>>    changed, I want it to be "{::usedfirstname} {::usedlastname}, 
>>> {::label}". 
>>>    It doesn't have to be that way in the page "data" section, since all 
>>>    modifications are done through a form, but in this case I would like to 
>>> be 
>>>    able to set (through a hidden form field) the title title to the correct 
>>>    composition of the related form fields' values before calling savedata.
>>>    Any suggestions on how to do that?
>>>
>>> Thanks a lot in advance, and have a nice day.
>>>
>>> Cheers,
>>>
>>> Tiffany
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "BoltWire" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/boltwire.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to