Parenthood Module
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: James Kanjo
Comments: 0
Tags:
nav_prev.pngPrevious: thread:138
Permissions Module
Edited: 12 Nov 2009 12:26 by: pieterh
Comments: 0
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:115
Notification configuration
Edited: 12 Nov 2009 12:25 by: pieterh
Comments: 0
Tags:
nav_next.png

Steven HeynderickxSteven Heynderickx wrote on 10 Nov 2009 15:59

Originally suggested by James KanjoJames Kanjo on 26 October 2009.

Briefing

One of the core information structures at Wikidot is the ability to grant each page a single parent.
A page can have many “children”, but each child has only one parent… it's a great way to assign a unique connection between two pages.

Though Wikidot has a parenthood framework, it lacks a way to organise and render pages by parenthood. The only thing that comes close to doing this is the PageTree module, and all that does is list pages by linked titles (in quite an attractive fashion, I must admit).

Concept

The PageTree module works in a chronological fashion: You select the root page, which lists its children, who in turn list their children, and they in turn list their children… and so on.
It is almost like looking into the future of a page (seeing their children and grandchildren).

When it comes to data organising, we can easily see into a page's future… but when it comes to a page's history — where it came from, what it's directly related to — we can only go as far as identifying the parent page's URL and title.

Proposal

A module that will list each consecutive parent of a page, according to the user's customisation.

[[module Parenthood prependLine="Start of history!" appendLine="End of history" limit="5" perPage="3" separate="false"]]
+ %%title_linked%%
%%content%%

%%tags%%
----
[[/module]]

This would list a page's parent according to the specified layout… then it would list that page's parent, which would list its parent page etc, etc. In the above example, we have posed a limit of 5 parents. We have also put a limit of displaying 3 parents per page.

Variables

Same as the ListPages module

Notes

This concept is only feasible in a backwards direction. It would be extremely difficult to produce this in a forwards direction (a list of children pages, and then their child pages — just as the PageTree module currently does).


Start a new sub-thread

We discourage direct comments on this thread: to discuss it, please start a sub-thread.

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