On 09/11/2013 08:37 AM, Vincent Massol wrote:
Hi Daniel,
On Sep 11, 2013, at 2:32 PM, Daniel Isenmann <daniel.isenmann(a)gmx.de> wrote:
Hi everybody,
I want to know if there is something similar in xwiki like in for example dokuwiki. There
exists a plugin which creates automatically links in wiki pages if you write the following
wiki syntax: [[bug>7884]] This will generates a link to bugzilla to the following URL:
https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have this small
piece of text and you will get a perfect link to bugzilla with the text: Bug 7884. It als
renders the small bugzilla icon before the text, but that's not necessary. Would be
nice, but isn't that important.
Now is there something similar or can I achieve this with the help of a macro or script
in xwiki?
This can be achieved with the notion of Rendering Transformation, see:
http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations
And also:
http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransfo…
Actually those are called "interwiki links" and it's something
XWiki
always supported.
To enable:
1. edit WEB-INF/xwiki.properties and add something like:
rendering.interWikiDefinitions = bug =
https://bugzilla.mozilla.org/show_bug.cgi?id=
Replace "bug" with a better name if you want, and of course the correct
URL to Bugzilla
2. Restart XWiki
3. Use the following syntax:
[[interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123||class="bugzilla"]]
Hi Vincent,
thanks for this hint. It works great and is absolutely that what I have
been looking for.
Thanks
Daniel