[dokuwiki] Re: externallink plugin syntax
- From: Otto Vainio <oiv@xxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 20 Oct 2008 21:53:48 +0300
Hi
I am the author of this plugin. Basically the format is how your browser
wants them. If you look the generated code, you will find that the
examples generate code as follows
[[@page|name]]
<a href="page" class="wikilink1" title="page">name</a>
This will guide you to http://somewhere/yourwiki/doku.php/page
[[@/page|name]]
<a href="/page" class="wikilink1" title="/page">name</a>
This will guide you to http://somewhere/page
[[@?do=recent|name]]
<a href="?do=recent" class="wikilink1" title="?do=recent">name</a>
This will guide you to http://somewhere/yourwiki/doku.php?do=recent
So this plugin is just following this same syntax.. sort of...
brgds Otto
Metz, Bobby wrote:
Hi all,
Somewhat related to the "DMS: organize external material"
thread. Being interested in that solution I took my first look at the
externallink plugin that was mentioned. Wondering if anyone else finds
the plugin syntax puzzling:
[[@page|name]] links to http://localhost:88/dokuwiki/doku.php/page
[[@/page|name]] links to http://localhost:88/page
[[@?do=recent|name]] links to
http://localhost:88/dokuwiki/doku.php/?do=recent
IMHO the first two syntaxes should be reversed. Based on the
first & last examples it would appear that "@" represents
"http://localhost:88/dokuwiki/doku.php/"; however, the middle example
seems to defy this. Since the last url example doesn't need the last
"/" character, I think it would be more logical to have "@" represent
"http://localhost:88/dokuwiki/doku.php". Then "@/page" would be used to
append the "page" parameter to the main wiki URL just like using
"@?do=recent" appends the recent page search parameter. Likewise, the
"@page" syntax would now instruct to move "outside" the wiki to fulfill
the request. I just think this would be cleaner.
Anyone with experience with the plugin care to share their thoughts on
this?
B
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: externallink plugin syntax
- From: Metz, Bobby
- References:
- [dokuwiki] DMS: organize external material
- From: Joel CARNAT
- [dokuwiki] Re: DMS: organize external material
- From: Dmitry Katsubo
- [dokuwiki] externallink plugin syntax
- From: Metz, Bobby
Other related posts:
- » [dokuwiki] externallink plugin syntax
- » [dokuwiki] Re: externallink plugin syntax
- » [dokuwiki] Re: externallink plugin syntax
Hi all,
Somewhat related to the "DMS: organize external material"
thread. Being interested in that solution I took my first look at the
externallink plugin that was mentioned. Wondering if anyone else finds
the plugin syntax puzzling:
[[@page|name]] links to http://localhost:88/dokuwiki/doku.php/page
[[@/page|name]] links to http://localhost:88/page
[[@?do=recent|name]] links to
http://localhost:88/dokuwiki/doku.php/?do=recent
IMHO the first two syntaxes should be reversed. Based on the
first & last examples it would appear that "@" represents
"http://localhost:88/dokuwiki/doku.php/"; however, the middle example
seems to defy this. Since the last url example doesn't need the last
"/" character, I think it would be more logical to have "@" represent
"http://localhost:88/dokuwiki/doku.php". Then "@/page" would be used to
append the "page" parameter to the main wiki URL just like using
"@?do=recent" appends the recent page search parameter. Likewise, the
"@page" syntax would now instruct to move "outside" the wiki to fulfill
the request. I just think this would be cleaner.
Anyone with experience with the plugin care to share their thoughts on
this?
B
- [dokuwiki] Re: externallink plugin syntax
- From: Metz, Bobby
- [dokuwiki] DMS: organize external material
- From: Joel CARNAT
- [dokuwiki] Re: DMS: organize external material
- From: Dmitry Katsubo
- [dokuwiki] externallink plugin syntax
- From: Metz, Bobby