AddUrlSchemes
<< | Cookbook-V1 | >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Question
How can I enable additional url schemes such as "irc:
", "nntp:
", etc.?
Answer
The list of URL schemes (http:, ftp:, https:, etc.) that PmWiki converts into links is given by the $UrlMethodPattern variable. To add new schemes to this list, simply concatenate the new schemes (separated by '|') onto the end of this variable in config.php. For example, to add the irc:
scheme, one could do
$UrlMethodPattern .= '|irc';
Contributors
pmwiki-2.4.2 -- Last modified by {{Pm}}