PagePath is a DataForm feature that hasn't been a very popular option. Mainly because people don't understand it.
But the PagePath is one of the major UI functions in one of my upcoming Wikidot Applications. It's such a beautiful and simple UI.
I need to be able to select how many PagePath levels deep the user can go.
For example, in the following PagePath diagram, in the DataForm I want the user to have access to only level 2.
Once they select a page from level 2, do not allow the user to select a page from level 3.
- _root
- level 1a
- level 2a
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2b
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2a
- level 1b
- level 2a
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2b
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2a
- level 1c
- level 2a
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2b
- level 3a
- level 4a
- level 3b
- level 4a
- level 3c
- level 4a
- level 3a
- level 2a
- level 1a
The proposal: add a “maxlevel” attribute to the PagePath, so that we can choose how many levels of children the user can select from.
[[form]]
fields:
genre:
label: Game genre
type: pagepath
category: genre
maxlevel: 2
[[/form]]
You can do this by css… but it has been a wish for me too
http://feedback.wikidot.com/wish:371
this will only show 1 level
form table tbody tr td span div span span{display:none}
this will only show 2 levels
form table tbody tr td span div span span span{display:none}
this will only show 3 levels
form table tbody tr td span div span span span span{display:none}
this will only show 4 levels
form table tbody tr td span div span span span span span{display:none}
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Thanks for the workaround!
OMG! I can't believe I thought up the exact same syntax as you! maxlevel: 2 What a coincidence… I suppose great minds think alike ;-)
I rejected the wish as it duplicates the one Steven already created.