|
Cookbook /
IncludeWikiPageSummary: How to syndicate wiki pages from other PmWiki 2.0 sites on your site
Version: 20051218
Prerequisites: Requires at least PmWiki version: PmWiki 2.0; last tested on PmWiki version: PmWiki 2.0.12
Status:
Maintainer: Jeff Barke
Category: Includes
QuestionHow can I syndicate wiki pages from other PmWiki 2.0 sites on my site and have them formatted using my site's CSS? AnswerFirst, be sure you're aware of the possible copyright risks of letting the content of other wiki pages appear in your pages. Once you've gotten past that hurdle, the following code in your config.php adds the (:includewikipage http://...:) markup that lets you embed the contents of other wiki pages into your wiki page. Markup('includewikipage', 'directives',
"/\\(:includewikipage\\s+(http:[^$UrlExcludeChars]*?)\\s*:\\)/e",
"PRR().implode('',file(str_replace('&','&','$1')))");
Example(:includewikipage http://www.milwaukeedept.org/pmwiki.php/Main/HomePage?action=source :) A working example can be viewed at: http://www.milwiki.org/Test/WikiIncludes. Notes and Comments
Contributors
|