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.3.32 -- Last modified by {{Pm}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons