Hi,
On Oct 4, 2013, at 9:30 PM, Keith Davis <keithdavis(a)pridedallas.com> wrote:
Can someone tell me what it would take (generally) to
add code that would parse text for a specific pattern and convert it to a hyperlink?
I'm fluent in PHP and C#, and know a little Java, but have done zero custom work with
XWiki. I've created this type of parser for other systems.
What I would be parsing is this regex pattern:
\*\*([0-9])*\*\*
To create this link:
http://intranet.pridedallas.com/tickets_edit.php?iTicketID=$1
This can be achieved with a Rendering Transformation, see
http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations
And specifically the WikiWord transformation
(
http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiWord+Transformation)
If you with to create your own transformation:
http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransfo…
Hope it helps,
-Vincent