[pmwiki-users] What's the Best Way to Automatically Create Author Page?

Patrick R. Michaud pmichaud at pobox.com
Fri May 18 08:54:26 CDT 2007


On Fri, May 18, 2007 at 08:26:46AM -0400, Ben Wilson wrote:
> I'm trying to figure out the best path for creating an author page
> based off of the template. I plan on using the AutoCreate array, but I
> don't know the best way to have it automatically include
> Templates.NewUser.

Here's a good start:

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

Pm



More information about the pmwiki-users mailing list