Another approach I used:
- Create a starting page like addressbook
- Put your form in it
- Put a search command with a table template below the form
- Create a template for your results table on a page
template.addressbook

This might be your form. It writes each new entry in your addressbook
on a single page with an URL like address.name.forename.city. You can
pull each part of the url with p2,p3,...

[form]
Name: [text name] Forename: [text forename]
City: [text city]
[session target "{=name}.{=forename}.{=city}"]
[session nextpage addressbook]
[submit OK]
[form]

and on the same page just below:

[(search group=address.* sort=p2 template=addressbook)]

and on the page template.addressbook your table with the data you
captured in the form like

[(template first)][t]
[(template each)][r][c]{+p2}[c]{+p3}[c]{+p4}
[(template last)][t]

If you want to save the values on the page as data fields, put this
line into your form before the line nextpage:
[session savedata name,forename,city]

and this line into your template page:
[(template each)][r][c]{+:name}[c]{+:forename}[c]{+:city}

In my experience every boltwire application starts with the question:
How do you organize the content?
Having hundreds of single pages is no problem in boltwire.
Using URLs for searching and templating is really fast.
Session target creates a new page with the url specified in the form.
Session nextpage is the page you go after submitting the form, in this
case it is the page with form and the results table.

>From here you have a couple of possibilities like showing the form
only to editors - wrap into [if editor] -- form -- [if].
Adding more addressbook details - expand the form using data fields
and the template.

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.

Reply via email to