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.
a : John
Keith Bieszczat : North-America
Connecticut : United States
Test : 20134
Jim Bob Jenkins : 1545 Mulberry St
Piet Paaltjens : Rembrandtplein 24
Lê Xuân Định : Asia
Berlin Chen : Taipei
Ewerew : Chester
wertwert : Pennsylvania
ff : Pennsylvania
Wewertwe : Pennsylvania
James Bond : Burbonstreet 21
Paradise Woman : Asia
Required Field :
Superhero : Palace
Mr X Name : Portland
Jim Bob : Hasselt Grote Markt 7
Marco Rossi : Europe
Jay Bienvenu : Lafayette, LA
Here is a list of all the pages that were made using pagepath.
Italy
20134
54
Rubattino
Milan
Italy
1545 Mulberry St
Little Rock
Arkansas
Rembrandtplein 24
Amsterdam
Netherlands
Taipei
Taiwan
Chester
John
Kenwood
Chicago
Illinois
Burbonstreet 21
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.