[pmwiki-users] includefile help?

Karin Armstrong karindar at uvic.ca
Mon May 8 17:33:05 CDT 2006


Hi -- I was looking at the cookbook recipe for includefile
http://www.pmwiki.org/wiki/Cookbook/IncludeFile

I'm setting a wiki up for large scale file management, and I wanted  
to include old html pages by uploading them to the wiki.

However, I can't get it to work.  I added
Markup('includefile', 'directives', '/\\(:includefile\\s+([-\\w.]+)\ 
\s*:\\)/e',
"Keep(implode('', file('/home/path/to/wiki/uploads/$1')))");

to my config file, changing the url to the path to the uploads  
directory.

And on the edit page, added
(:includefile /home/path/to/wiki//uploads/Group/file.htm:)

The view is of the include syntax, with no sign of the included file.

Can anyone  suggest what I'm doing wrong?
Thanks!
Karin







More information about the pmwiki-users mailing list