Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

JJSIterator

Summary: let the browser iterate over a set of wiki pages
Version: 1.0
Prerequisites:
Status:
Maintainer: jjs
Categories:

Questions answered by this recipe

I'm using JjsCMS. How can I publish all pages of a Group at once?

Description

Installation

Download jjsiterator1_0.phpΔ and place it in your cookbook directory.

Add this line to config.php

  require_once($FarmD . '/cookbook/jjsiterator1_0.php'); 

Usage

Using an url like

  http://.../pmwiki.php?jjsiterator=0&action=jjscmspublish

your browser will visit all pages in your wiki thereby refreshing the jjscms cache.

Optional Parameters

jjsiteratordelay
Seconds to wait before the next page is loaded.
jjsiteratorpat
Limit search to pagelist pattern. Example: jjsiterator=0&jjsiteratorpat=Main use only pages from group "Main"
any pmwiki parameter
All parameters given at start will be used for each iteration. Example: jjscmsiterator=0&action=print will show all pages in print layout.

Notes

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

2006-03-18 initial release

Comments

JJSIterator works as advertised. Great stuff! The jjsiteratorpat parameter is useful; however, is there a way to accomplish its inverse? That is, I would like to iterate through all groups except the "Main" and "Site" groups, for example.

Andrew, 16-04-06

Is there a way to go to all the pages in te site exepted all .RecentChanges

Thanks in advance, mam

See Also

JjsCMS

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on January 18, 2007, at 01:43 AM