Re: path_info navigation
[email protected] ("Marcelo E. Magallon") Mon, 1 Nov 2004 20:10:20 -0600
| Newsgroups | perl.kwiki |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 01, 2004 at 03:27:56PM -0000, MJ Ray wrote:
> CGI::Kwiki::Formatter (replace the wiki_link to allow / or : as path char)
I'd very much like to have that, but...
Let's say http://example.org/ is wiki root, and you go to
http://example.org/Foo/Bar, where the following text exists:
You just need to write in CamelCase in order to create links or make
[some explicit -- yet safe for kids -- links http:SafeForKids]
that would generate approximately the following HTML:
<p>You just need to write in <a href="CamelCase">CamelCase</a> in
order to create links or make <a href="http:SafeForKids">some
explicit -- yet safe for kids -- links</a></p>
Those links take you to:
http://example.org/Foo/CamelCase
http://example.org/Foo/SafeForKids
respectively.
The first one you can fix by having some base URL and prepending that
to the href (i.e. by defining script_name appropiately). The second
one I don't see how to fix without parsing the href (http:SafeForKids).
Having a base meta? rel link? Something along those lines rings a
bell, but I can't quite remember what's the correct name.
I'd be happy being able to have some sort of categorical system :-)
Mostly for the very evil purpose of being able to generate indexes
(This category contains: ...)
--
Marcelo