leiger wrote on 02 Mar 2010 21:59
I was of the understanding that when you used a PagePath, you were giving the page you were creating a parent.
For example, the documentation uses this example:
- _root
- Adventure
- Action
- Simulation
- Driving
- Other
- Combat
- Simulation
- Sports
- Football
- Racing
I had then expected that the page tree would continue further, with the "Action>Simulation>Driving" page having a number of children pages… all of which are Games that selected that option in the page path as their genre.
I have since discovered that Page Path does not work this way. My question: Should it be changed to work that way?
Over on the sandbox website I created a working use case for this example (http://sandbox.wikidot.com/mcd:_start)
Another use case would be a Golf Club, which categorises members into groups:
- status:Active
- status:Full-time
- member:Tom
- status:Part-time
- member:Bob
- member:Jane
- member:Sally
- status:Full-time
- status:Inactive
-
- member:James
- member:David
- member:Ben
-
"status" is the category used by the Page Path… which is defined in member:_template.
However, I did some looking around and found this… does the backlinks option in ListPages remove the need to make the change I suggested at the top of this post? Or are there still advantages to having the parenting go all the way… right up to the page that you are editing as well?
http://projects.wikidot.com/thread:120
Backlink selector:
- Select by backlink: backlink="backlink-selector"
- "-" means pages with no backlink (i.e. orphaned pages)
- Else specifies a list of space/comma delimited category:page values
The example that I created on the sandbox site (http://sandbox.wikidot.com/mcd:_start) could be modified to work quite well with the ListPages module backlink selector. Unfortunately, the backlink selector is not yet implemented…
In my opinion, it should NOT.
Example:
Hence, ListPages needs to be enhanced to be able to select backlinks of a page (and module Backlinks be deprecated).
[[module ListPages category="game-genre" backlinks="."]]
%%title_linked%% %%created_by%%
[[/module]]
But the above discussion should be located at ListPages' discussion… otherwise Leiger would shout ;-)
Anyway I don't like arbitrary hierarchies.
gerdami - Visit Handbook en Français - Rate this howto:import-simple-excel-tables-into-wikidot up!
In that case, the game is easily distinguishable from the genre because they are in different categories.
The game:colin-mc-rae page is a child of genre:driving.
I don't see the problem with this (so please explain what you see wrong with it?)
Not sure what you mean with this last bit. Where does the word "offline" come in to that? :S
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)