Последние изменения - Поиск:

Разделы

PmWiki

ред.

Categories-Talk

Using the Auto Created Pages

If you enable the auto creation of the category pages you can use them to display links to pages which belong to that category.

Add these two lines to your local config.php.

$page = ReadPage('Category.GroupTemplate', READPAGE_CURRENT);
$AutoCreate['/^Category\\./'] = array('ctime' => $Now, 'text' => $page['text']);

Then navigate to the Category.GroupTemplate page (which will create a new page) and edit that page to include:

(:pagelist link=Category.{*$Name} list=normal:)

Every time a category page is autocreated it will have the content you placed in the GroupTemplate. Each category page will display a linked list of pages in that category. This places the list in the body of the page rather than in the footer.

This should not be required, if one creates the Category.GroupFooter, as explained in the page. --Petko? February 14, 2009, at 08:11 AM


This is a talk page for improving PmWiki.Categories.

Править - История - Печать - Последние изменения - Поиск
Редакция от 04.03.2009 06:39