=====PrettyCategory Action===== This gentle rewrite of the [[CategoryActionInfo | Category]] which ships with WikkaWiki 1.1.6.4 was created for use in a translucent website, where I want to show a list of categories and hide some of the CamelCase wiki-ness of the site. In contrast to PrettyRecentChanges, there are very few deletions necessary and this is essentially about including the uncamel function (used there) here to break up category names into constituent words. I have many pages which are listed as ""Readings4June2008"" which this code presents as Readings 4 June 2008. ====Installation==== In your actions directory, copy category.php to prettycategory.php In the new file, insert the following code immediately after the header comments: %%(php) if ( !function_exists('uncamel')) { function uncamel($intext) { // Following codes based on a blog posting by Trenton Davies // at http://ad.hominem.org/log/2004/12/camelcase.php $text = join( ' ', preg_split("{(?<=[a-z])(?=[A-Z0-9])}x", $intext ) ); // Following line breaks out numbers as separate words as well $text = join( ' ', preg_split("{(?<=[0-9])(?=[A-Z])}x", $text ) ); return "$text"; } } %% Replace the line that reads %%(php) $str = " pages belong to ".$page.":"; %% with %%(php) $str = " pages belong to ".uncamel($page).":"; %% Also replace the line that reads %%(php) if (!$compact) $str .= '