[pmwiki-users] $AutoCreate q.
noskule
noskule at gmx.net
Fri Sep 21 10:18:18 CDT 2007
hi list
Is $AutoCreate supost to work also in groupheader or only in the page
itself?
I try to autocreate Categories. As long as the category link is in the
page it works, but it don't work if I put it in the groupheader as shown
below. Anyone an idea what to do?
example (simplyfied):
---groupheader----------------------
[[!{$:Category}]]
---page-----------------------------
(:Category: NewCategory:)
---config.php
$page = ReadPage('ContentTemplates.Category', READPAGE_CURRENT);
$AutoCreate['/^Category\./'] = array(
'ctime' => $Now,
'text' => $page['text']
);
grz nos
More information about the pmwiki-users
mailing list