1. For your first question, how about trying this near the end:

[command create page="group.friendsof{=id}"]
[command reset title "{=title}'s friends"]
[command savedata title page="group.friendsof{=id}"]
[form]</box>

What about using page names like friends.id or group.friends.id?

2. For the second, my suggestion would be to save the data fields just as
they are and then create a group header like this:

! {:field1} {:field2}, {:label}

(Make sure you use one colon not two for data vars.)

To only do this if the title is not set to something special--how about

[if equal '{title}' '{page}' case=false]{:field1} {:field2},
{:label}[else]{title}[if]

If you want that value in the actual title field put these lines in a form:

[form]
... input fields
[command title "{=field1} {=field2}, {=label}"]
[command savedata title page=some.page]

Hope this helps!

Cheers
Dan



On Thu, Sep 25, 2014 at 2:54 AM, Tiffany Grenier <[email protected]>
wrote:
>
> 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).
>
>  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?
> 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].
> 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.

-- 
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