parent nodes: DemoPageFormatting | DemoPagePageTemplates

Demo Page Form Templates

Contents:
Demo Page Form Templates
General
Example
Tables
Remarks
Todo's
Results

Back

General

Sometimes, especially when dealing with templates, there might be a need for pages, where all that needs to be done, is to fill in a number of specific fields. The need for forms with a fill-in-the-blanks facility. Wikidpad supports this with form pages. A form page is any wikidpad page and can have any content on it, together with a number of &&i tags. These &&i tags depict the places where some value has te be typed; i.e. they depict the "input fields".

A form page is specified, by adding a [pagetype: form] attribute to it. This effectively changes the behaviour of the tab key from it's standard function to a "skip to the next &&i tag" function. This happens only on the active page and only in the editor; nót in preview. Due to their use, form pages must be seen as an extention to template pages.

Remarks Top

Example

This example uses the template example as a basis and extends that; contact pages are a particularly usefull example for form pages. The contact template can easily be changed into a contact form, like this: If this form would have been the template for DemoPageContactParent, then adding the new contact "DemoContact JasonHorman" to the list, the resulting page will look like this: The &&i tag behind "Name" would be selected and can be replaced by just typing the name. Pressing the Tab key would move the cursor to the "Adress" &&i tag and select that. Simply tab your way through the tags and fill in Jason Hormans specifics.

Remarks Top

Tables

The form templates: DemoPageContactTable and DemoPageContactHtmlTable were used together with the DemoPageContactParent, to check whether the &&i tags would also work within tables; both the wikidpad kind and the html kind. This to see if a form with a better layout in preview could be obtained. It works, but one has te be carefull not to upset the table tags; especially with the html table.

Top

Remarks

Top

Todo's

done.demo.projectdemo.demo2: check out all posibilities
action.demo.pageformatting.formtemplates: template action

Top

Results

[demo.status: done]
Top
previous: Back
parents:  DemoPageFormatting, DemoPagePageTemplates
templates: DemoPageContactForm; DemoPageContactTable; DemoPageContactHtmlTable