JjsCMS-Talk
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Comments
Sidebar and other included content not updated
When you've edited a page that is referenced inside the template or from any other wiki page, (eg. the Sidebar) then you must browse to all referencing pages in order to update their static copy. There's no magic "make" like functionality implemented.
JJSIterator presents a workaround:
Install jjsiterator and using an url like
http://.../pmwiki?jjsiterator=0&action=jjscmspublish
your browser will visit all pages in your wiki thereby refreshing the jjscms cache.
Patch to skins.php
Using a shared pub dir above the pmwiki dir requires a small patch to scripts/skins.php:
foreach((array)$skin as $s) { $sd = FmtPageName("pub/skins/$s", $pagename); if (is_dir($sd)) { $Skin=$s; $SkinDirUrl="$PubDirUrl/skins/$Skin"; break; } $sd = FmtPageName("$FarmD/pub/skins/$s", $pagename); if (is_dir($sd)) { $Skin=$s; $SkinDirUrl="$FarmPubDirUrl/skins/$Skin"; break; } # BEGIN JJS 2005-04-04 global $PubDir; $sd = FmtPageName("$PubDir/skins/$s", $pagename); if (is_dir($sd)) { $Skin=$s; $SkinDirUrl="$PubDirUrl/skins/$Skin"; break; } # END JJS 2005-04-04 }
Cannot modify header information
I tried to use JjsCMS with PmWiki 2.1.beta17 and got this warning:
require_once('pmwiki/cookbook/jjscms.php');
Nothing is output in the public static directory defined by $PublishDir.
[Edit 2006-02-04] Oops, I didn't have <?php if (!defined('PmWiki')) exit(); in config.php. After fixing this, I still got no output though.
There is a bug in 1.0. Please try version 1.1. If it still doesn't work please use the mailing list or contact me.
Any explicit explanation for this recipe?
Tried to use this recipe as instructed above and got just blank pages. Explicit instructions would be highly appreciated.
I'm working on a better explanation, including a full sample setup. jjscms1_2.php with improved url rewriting code will be released shortly.
Eagerly look forward to it. Any specific date of release? And I would love to know whether the new release will be compatible with all other recipes? Thanks, Jens.
Due to the way it works, jjscms should not break pmwiki with most recipes. It is however not aware of any access restrictions! Even password protected pages will be copied to the publish directory.
Still working on the next release. Major changes: Copy is only written on demand (action=jjscmspublish). New features are: Password protection for publishing and an approval mechanism (also password protected) using custom PageAttributes.