Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

CMSMode

Summary: Adds some customizations for a non-wiki (or hybrid) type installation.
Version: 2006-06-25
Prerequisites: PmWiki 2.1
Status: New (beta)
Maintainer: Hagan Fox
Categories: CMS Security

This recipe adds some customizations for a wiki site that has a site-wide default edit password but does not have a site-wide read password.

Description

The script changes some behavior when a visitor isn't authorized to edit.

  • Only pages containing your site's content will appear in search results.
  • Access to certain groups / pages is not allowed.
  • Only essential site-related actions (no ?action=source, etc.) are allowed.

Additionally, the script creates a special "public" AllRecentChanges page to use for web feeds.

Installation

Download Attach:cmsmode.phpΔ, copy it to your cookbook/ directory, invoke it with the following somewhere near the end of your config.php file (definitely after any lines involving passwords/authentication):

$pagename = ResolvePageName($pagename);
include_once("$FarmD/cookbook/cmsmode.php");

Notes

This space is for Author-contributed commentary and notes. Please use the Comments section for User-contributed feedback. The code in this recipe used to be part of the Light skin, and is mainly designed to work with an upcoming version of that skin.

Comments

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

  • 13-Nov-2006 RussFink - has this work been superceded by CMSBundle? Are you maintaining this package anymore?
    • Not necessarily and yes. -- Hagan

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on March 21, 2007, at 12:30 AM