|
DisableWikiWords<< Complex Recipes | Cookbook-V1 | No Wiki Words >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
QuestionHow can I disable WikiWords from being treated as links in a page? Answer 1: Disabling all WikiWordsAdd the line to local/config.php or a PerGroupCustomization file. This will disable "bare" WikiWords in pages. One can still link to pages by using the other linking mechanisms such as You may want to leave WikiWords enabled in the Main and PmWiki groups to preserve links in the documentation. Do this with
# Turns off WikiWords in all groups except Main and PmWiki
$group = FmtPageName('$Group',$pagename);
if ($group!='' && $group!='Main' && $group!='PmWiki') $WikiWordCountMax = 0;
Answer 2: Disabling selected WikiWordsOne can also disable selected WikiWords via the to local/config.php. Answer 3: Disabling WikiWords on a PageYou can turn off WikiWords in an individual page by adding the following #Add No WikiWords Directive
$BrowseDirectives['[[nowikiwords]]'] =
'$GLOBALS["WikiPageCreateFmt"] = "\$LinkText";
$GLOBALS["WikiPageCreateSpaceFmt"] = "\$LinkText";';
to local/config.php. Then use <#>? anywhere in the page where you do not want WikiWords to appear. See alsopmwiki-2.2.0-beta68 -- Last modified by {{simon}}
|