[Pmwiki-users] Re: Re: can pmwiki handle hierarchical content?

Patrick R. Michaud pmichaud
Mon Oct 18 14:27:34 CDT 2004


On Mon, Oct 18, 2004 at 09:55:40PM +0200, chr at home.se wrote:
> > > * To link to Linux.Hardware.SoundCards we would have to use
> > > [[Hardware/SoundCards]] (i.e. in current context/group subgroup Hardware,
> > > page SoundCards) and this, even if our current page is called "Hardware"
> > 
> > This is likely to annoy authors, that moving from Hardware to any of
> > its subpages requires that 'Hardware' be repeated in each link.  Especially
> > if the page's name is on the longish side.  There needs to be a shortcut.
> 
> Well, [[./SoundCards]] would seem natural to me, although I prefer a page 
> tree as the basic data structure, with groups "outside" that.

[[./SoundCards]] does seem natural, but keep in mind that doing this is
actually quite different from what we normally experience in URLs, HTML, and 
filesystems.  For example, if my browser is viewing the (non-wiki) document 
at "http://www.example.com/Linux/Hardware" and that document contains a link
with <a href="./SoundCards"> in it, the resulting target is
"http://www.example.com/Linux/SoundCards", and not
"http://www.example.com/Linux/Hardware/SoundCards".  

Similarly, if I'm running a script called "/home/pmichaud/bin/myscript", 
and inside of that script I make reference to a file called "./data", the 
referenced file is "/home/pmichaud/bin/data" and not 
"/home/pmichaud/bin/myscript/data".

I'm not necessarily saying that [[./SoundCards]] can't work, I'm just
pointing out that it's at odds from what people experience in other 
contexts (e.g., authoring HTML documents) and therefore might be a source 
of confusion.  If I'm editing Linux.Hardware, it's entirely reasonable
to expect [[./SoundCards]] to refer to Linux.SoundCards--i.e., the
"SoundCards" page within the group of the current page (i.e., "Linux").

> I'm getting confused, is this the imaginary group/page tree you're
> thinking of:
>   /-- Linux/			<- group?
>   |   |-- Hardware		<- page
>   |   |   '-- SoundCards
>   |   '-- Software
>   '-- Hardware/			<- group?
>       '-- PowerTools

Yes, although I don't have a complete tree in my head as I start this.  I'm 
simply introducing pages as I need them to illustrate the issues involved
as we go along.  But I'll do my very best to keep the tree consistent as 
I go, if others can do the same.

Pm



More information about the pmwiki-users mailing list