[pmwiki-users] Multiple CategoryGroups: 404 header
Petko Yotov
5ko at free.fr
Tue Sep 26 02:08:25 CDT 2006
Hello, Patcrick and all,
I would like to have five or six Category groups (Tags, ProjectCategory,
ContactCategory...) but unless for the original "Category.*" I always recieve
a "404 Not found" header and a default text.
I tried to copy and adapt the code from stdmarkup.php to config.php:
$pagename = ResolvePageName($pagename);
## [[?Tag]]
SDV($TagsGroup,'Tag');
SDV($LinkTagFmt,"<a class='taglink' href='\$LinkUrl'>\$LinkText</a>");
Markup('[[?','<[[','/\\[\\[\\?(.*?)\\]\\]/e',
"Keep(MakeLink(\$pagename,PSS('$TagsGroup/$1'),NULL,'',
\$GLOBALS['LinkTagFmt']),'L')");
if (preg_match("/^$TagsGroup\\./", $pagename)) {
SDV($DefaultPageTextFmt, '');
SDV($PageNotFoundHeaderFmt, 'HTTP/1.1 200 Ok');
// tried also $DefaultPageTextFmt = '';
}
The links [[?Tag]] to Tag/ group do work as "existing page link" like [[!Cat]]
for Category/, but when I get there, the header is always 404 and the text is
like:
The page "Tag" doesn't exist. (Create Tag.Tag).
There is a Tag/GroupFooter, just like Category/GroupFooter.
How can I fix this? Is it possible to have more than one category group?
Greetings,
Petko Yotov
More information about the pmwiki-users
mailing list