Drupal Flexifilter Mediawiki example hack

You like drupal flexifilter mediawiki syntax, but dislikes it links to wikipedia instead of your site?

Check
sites/all/modules/flexifilter/flexifilter.flexifilters.inc

and change the wikipedia occurences to your site path!

When the module is installed now, you can got to
admin/build/flexifilters/1

and change wikipedia entries in the hiearchy of filter commands.

it's a bit fiddling to find it... something like
Components -> chunk grabber -> Components -> if ... then there is as well in the no group as in the if group somewhere a text prepend field the info with the value


<a href="http://en.wikipedia.org/wiki/"


change it to


<a href="/cms/


or whatever the URL of your site is.

(I'm eventually going to look up the api to find the variable containing the base path...)


EDIT:

Got that done - I attached an export of the filter I changed so that linking to existing pathes
(not yet Pages/nodes by name!) is possible: http://drupal.org/node/354326