CMS Mode, a recipe for PmWiki
=============================

This recipe makes your wiki look and act like an ordinary website
when non-authors visit.

* Certain changes to the site's behavior when the visitor isn't permitted
  to edit pages.
  - Any action (?action=<something>) not explicitly permitted is ignored.
  - Only your site's content pages will appear in search results, not
    PmWiki documentation or other content you may specify.
  - Most PmWiki-related pages will be inaccessible as well as unsearchable.
  - The rel="nofollow" attribute is removed from external links, which
    will signal search engines to index them.
  - Page modification times are simplified to just a date.

* (All)RecentChanges pages are modified so they're more appropriate to
  be used as public web (RSS) feeds.
  - RecentChanges pages other than $SiteGroup.AllRecentChanges will
    have a web feed-friendly format, with PmWiki-related pages excluded.
  - A Main.AllRecentChanges page is created that is appropriate to be used
    as a public site-wide web feed page.

By default there are pages that visitors can visit but they don't appear
in search results. For example, by default,
  - Pages in a group named Test/ are off-limits to non-authors.
  - Pages in a group named Temp/ can be visted, but not searched.
  - Neither Test/ nor Temp/ pages appear in the public feed.

Copy the script to the cookbook/ directory and add the following to
your configuration file:

   ## Make the  wiki look and act like a normal website for non-authors.
   $pagename = ResolvePageName($pagename);
   include_once("$FarmD/cookbook/cmsmode.php");


Version: 2014-05-21 - Fixed some CMS Mode CSS selectors.

Version: 2014-05-19 - The script was refactored. See the recipe
page for changes to this version and other previous changes.
[...]
Version: 2006-03-28 - Initial version.

