JjsCMS-Talk

Summary: Talk page for JjsCMS.
Maintainer: jjs
Users: (View? / Edit)

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');

Warning: Cannot modify header information - headers already sent by (output started at public_html/pmwiki/local/config.php:2) in public_html/pmwiki/pmwiki.php on line 769

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.

JustAGuest, 2006-01-03

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.

Jens, 2006-01-20

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.

Sichendra, 2006-03-02

I'm working on a better explanation, including a full sample setup. jjscms1_2.php with improved url rewriting code will be released shortly.

Jens, 2006-03-05

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.

Sichendra, 2006-03-06

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.

Jens, 2006-03-06

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.

Jens, 2006-03-13

Talk page for the JjsCMS recipe (users?).