Mailing List Archive

MediaWiki Hack: dotdot syntax for subpages
I hacked Parser.php to support standard unix
dotdot syntax to reference pages up the subpage
hierarchy. This is probably most useful for
intranet usage (I'm assuming subpages are used
more heavily in intranets).

With this hack, you can create links like this:

[[../../somePage]]

And MediaWiki will do the right thing.

My implementation is not good. This was my first
foray into PHP and I found debugging to be a
nightmare so I quit as soon as I got a working
solution. :-(

Anyway, there are a few limitations on the syntax
this implementation accepts, as noted in the code.
It might be useful for this feature to be added to
the standard MediaWiki distribution (with an
improved implementation).

I've attached a diff from Parser.php (1.3.8).

Thanks,

JA



__________________________________
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com
Re: MediaWiki Hack: dotdot syntax for subpages [ In reply to ]
The attachment did not make it, so I filed
Bug 981 in MediaZilla with an example implementation
for this dotdot syntax RFE.

JA



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo