Hi, Daniel,
IMHO, it's better to use macro in such a case:
- it is more flexible
- you can use it via WYSIWYG editor
- you're not dependent on "external" XWiki configuration from server side,
so it will just work on other XWiki instance from the scratch
- you're at the safe side if Development Team once will change smth in interwiki
engine :-)
Kind regards,
Dmitry
Среда, 11 сентября 2013, 15:46 -04:00 от Sergiu Dumitriu <sergiu(a)xwiki.org>rg>:
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"]]
--
Sergiu Dumitriu
http://purl.org/net/sergiu
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users