|
Table of Contents
|
Examples
Example 1: Address book
Scenario:
You wish to make an address-book
You create contact-person:_template
In this template you formulize a form with a pagepath referencing the category "address"
you now add you first contactperson
For example in the pagepath you enter
Europe —> Belgium —> Limburg —> Hasselt —> Somestreet and number
Now all these pages will be created on the fly. With zero content
However if you would make a address:_template with in there the backlinks module…
The page "somestreet and number" will display the name of your first contactperson
NOTE!!
If you are creating new items in the pagepath you need to press ENTER after every item you create.
Here is a list of all the contact persons that were submitted.
address:greaceland : Greaceland
Helmuti pdorf : Lower-Austria
Oooop the Binky : Cundletown
Elvis Presley : Greaceland
Ian : Kent
Leeloo : Pennsylvania
Luc : St Paul
Yee : China
Yamie : Asia
Yam :
First Last : United States
Test : North-America
aaba : Europe
Tombo Smitho : Beaverton
Another Joe : 43 Park Terrace
Piotr Gabryjeluk : pl. Świętej Katarzyny 9
Kenneth Tsang : New South Wales
Jamie Green : 43 Park Terrace
David Anonymous : 132 Main Street
James Kanjo : 36 SA-is-better Road
Here is a list of all the pages that were made using pagepath.
Palace
London
Lafayette, LA
Louisiana
Portland
Oregon
Main Road
Fort Knox
Kentucy
Lower-Austria
Austria
Greaceland
Kent
UK
Pennsylvania
China
Asia
Beaverton
Oregon
pl. Świętej Katarzyny 9
Here is the hierarchy of all the pages that were made using pagepath.
Example 2: Wines
Example 3: Keep controle over things.
Pagepath is a bit strange and new to many people. Therefore I did some thinking and came up with some cool 'controle features'.
- it is possible to set a default value for your pagepath…
- if is also possible to limit to number of pull down boxes.
in action
Here's how you do it:
- Create a _template form.
- Add someformatting to your site-theme
- Create the page for the default value yourself
So this is the code for your form _template. For people who never heard of live templates, please search on the community forum for it. It is well explained there.
The template has two major blocks:
- display of the form
- form definition
[!-- display of form content --]
You just entered the following location:
[[iframe http://pagepath.wikidot.com/%%form_raw{location}%% frameborder="0" height="22px", width="400px" scrolling="no" style="float:right;"]]
====
[!-- form defintion --]
[[form]]
fields:
generallabel:
type: static
value: "We would like to know more about you and we notice that other users find it very interesting to know more about somebody before contacting them. This is general information, which is not specific engough, but gives a fairly good image of someone. So please provide as much as possible"
locationlabel:
type:static
value: **If you add a "new item" to the lists below, ALWAYS press "enter" so it gets saved.**
location:
label:Location
type:pagepath
category:location
default:location:my-town
[[/form]]
There is an I-frame in the display of the form. This is to display the breadcrumbs of your location. Which made more sense to me, but as you may notice… it is clickable so that is a bit strange.