2 Summary: Store pages as XML files
6 Maintainer: [[~Anomen]]
7 Categories: [[!Administration]], [[!CustomPageStore]]
8 Users: {$Users} ([[{$FullName}-Users|view]] / [[{$FullName}-Users?action=edit|edit]])
9 Discussion: [[{$Name}-Talk]]
11 !! Questions answered by this recipe
15 * pages easily editable in plain text editor
16 * better handled by versioning systems (text is no longer single long line)
17 * export/import pages using various tools with XML support
21 The Attach:XMLPageStore.php script stores pmwiki pages into xml files in the ''wiki.d/'' directory.
23 The recipe is still under development, so use direct link to git repository:
24 [[http://repo.or.cz/w/anomen-overlay.git/blob_plain/HEAD:/www-apps/pmwiki/cookbook/XMLPageStore/XMLPageStore.php | XMLPageStore.php]]
28 To use this script, simply place it in your ''cookbook'' directory and add the following lines to ''local/config.php'':
31 $EnablePageStoreXML = 1;
32 include_once('cookbook/XMLPageStore.php');
33 $WikiDir = new XMLPageStore('wiki.d/{$FullName}');
36 There's no need to convert or modify your existing pages;
37 ''xmlpagestore.php'' can read existing pages without any difficulty.
38 As pages are edited and saved, they will be then saved as XML files in ''wiki.d/''.
39 Please make sure the above cookbook script is loaded before other scripts.
43 Use @@$EnablePageStoreXML@@ variable to enable/disable writing xml files.
52 !! Change log / Release notes
53 * 2011-04-22 15:53 - added to PmWiki Cookbook
57 : git repo : http://repo.or.cz/w/anomen-overlay.git/tree/HEAD:/www-apps/pmwiki/cookbook/XMLPageStore
59 * [[Category/CustomPageStore]] category
63 * [[~Anomen]] - original script
67 See discussion at [[{$Name}-Talk]]