|
Here is the first test of multi-page database tables.(In other words, attribute-style tables).
|
Here is the first test of multi-page database tables.(In other words, attribute-style tables).
|
|
|
{{TableOfContents}}
|
|
|
= Introduction =The tables on this page are constructed from data obtainedfrom pages that start with the prefix "TestUser"
|
|
|
= Table of users, with no extra configuration =Following this text, there should be a table of users showing all recordsand all fields from those records. The fields should be: * record_id * e_mail * phone * watches * admin_flag
|
|
The record_id field for this database has the user's name, and is putinto the file using an attribute-name/value pair, with the attribute namebeing record (as opposed to record_id).
|
The record_id field for this database has the user's name, and is putinto the file using an attribute-name/value pair, with the attribute namebeing record (as opposed to record_id).
|
|
|
{{{#!Tablesource_spec=TestUser.*}}}
|
|
|
= Table of users, referencing a configuration block =This section shows the same data (obtained from all records defined bythe files start with "TestUser"), but this time using a configuration blockto control output and formatting.
|
|
The configuration block is called "UserConf", and is expressed later inthis page.
|
The configuration block is called "UserConf", and is expressed later inthis page.
|
|
This configuration block specifies to only show the record_id,phone and watches fields, in that order.
|
This configuration block specifies to only show the ''record_id'',''phone'' and ''watches'' fields, in that order.
|
|
|
{{{#!Tablesource_spec=TestUser.*conf=:UserConf}}}
|
|
|
= UserConf configuration block =The configuration block can specifyall kinds of attributes for the page, including custom forms,row filters, which columns to display, fields attributes suchas type, possible values and colors.
|
|
The cols attribute indicates the columns to show from this table.
|
The ''cols'' attribute indicates the columns to show from this table.
|
|
The longest section of this block is the add_form attribute, which hashtml for a nicely formatted form to add a new record to this database.Adding a record will create a new file consisting of "TestUser" followedby the user name that is entered for the record_id field.
|
The longest section of this block is the ''add_form'' attribute, which hashtml for a nicely formatted form to add a new record to this database.Adding a record will create a new file consisting of "TestUser" followedby the user name that is entered for the record_id field.
|
UserConfunknown_attr=foocols=record_id:phone:watchesadd_form="""This form is used to add a new user to the system:
|
{{{UserConfunknown_attr=foocols=record_id:phone:watchesadd_form="""This form is used to add a new user to the system:
|
| Please enter the user name: | missing data value "record_idField" | | E-mail address: | missing data value "e_mailField" | | Phone number: | missing data value "phoneField" | | Pages to watch (expressions): | missing data value "watchesFieldTextarea" | | Admin: | missing data value "admin_flagFieldCheckbox" This person is has admin privileges | missing data value "SaveButton" missing data value "CancelButton"<br>"""
|
<table><tr><td>Please enter the user name:</td><td> %(record_idField)s</td></tr><tr><td>E-mail address:</td><td> %(e_mailField)s</td></tr><tr><td>Phone number:</td><td> %(phoneField)s</td></tr><tr><td>Pages to watch (expressions):</td><td> %(watchesFieldTextarea)s</td></tr><tr><td>Admin:</td><td>%(admin_flagFieldCheckbox)s This person is has admin privileges</td></tr></table>%(SaveButton)s %(CancelButton)s<br>"""
|
|
}}}
|
}}}
|