db4town:_template

1. Explanation:

This is for an example of a database record page for a specific TOWN with
it's interesting data: Name ( Title of the page) , Country, Number of people, Capital-switch

Please - if you want to create another entry with another town - use the Buttons on the right side:
the page name of this created "record" is "db4town:NNNnumber" using the category "db4town" and the existing _template for it!
You have to use the "Form" of the _template with the field-variables!


2. Database fields:

%%form_label{country-of-town}%% : %%form_data{country-of-town}%%
%%form_label{count-of-people-text}%% : %%form_data{count-of-people-text}%%
%%form_label{capital-switch}%% : %%form_data{capital-switch}%%

2.1. Free wiki text ( last field "freetext2")


%%form_data{freetext2-wiki}%%


2.2. Childpages

2.3. Backlinks

3. Form used here:

[[form]]
  fields:
    title-text:
      type: static
      value: Please fill out the upper title field with the NAME of the Town
    country-of-town:
       label: Country of the town
       type: pagepath
       category: db3country
    count-of-people-text:
       label: Living people (count)
       type: text
       width: 30
    capital-switch:
      label: Is this a Capital-town?
      type: select
      values:
        1: "Yes"
        2: "No"
    freetext2-wiki:
       label: Free Wiki source text to comment what ever
       type: wiki
[[/form]]

4. Tips:

Be carefully with the indent in the form! ( always 2 characters! ) or your form will not work…
You will find the doumentation on: http://www.wikidot.com/doc:data-forms


=====
[[form]]
  fields:
    title-text:
      type: static
      value: Please fill out the upper title field with the NAME of the Town
    country-of-town:
      label: Country of the town
      type: pagepath
      category: db3country
    count-of-people-text:
      label: Living people (count)
      type: text
      width: 30
    capital-switch:
      label: Is this a Capital-town?
      type: select
      values:
        1: "Yes"
        2: "No"
    freetext2-wiki:
      label: Free Wiki source text to comment what ever
      type: wiki
[[/form]]

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License