[pmwiki-users] Supporting different modes in default pmwiki

Bronwyn Boltwood arndis at gmail.com
Thu Aug 11 14:07:06 CDT 2005


On 8/9/05, Neil Herber <nospam at eton.ca> wrote:
> At 2005-08-09  01:12 PM -0400, Radu is rumored to have said:

> >* display view (AFAICT most people agree with this one)
> 
> This is one "view" that I think deserves prominence above the others, since
> makes PmWiki a very convenient CMS. I use it as such already, but it
> doesn't bother me (or my audiences apparently) that there are "wiki"
> vestiges visible on the website so all I have done is edit-protect some pages.

Patrick Ogay's "[pmwiki-users] question about view concept" thread
inspired what I hope is a good idea.  I'd like the ability for a
view-switching request to ask for the most appropriate password.

The idea here is that you have set up a site using PmWiki as a CMS,
and want to use display view by default.  You do not want to show the
view switcher to your visitors.  But wiki authors and admins will need
a different view, and access to the view switcher.  That's the use
case.

Could we, in display view, show only a "Login" link, that, when
clicked, asks for the page's edit password, and reloads the page in
the appropriate view?  Logging in would also reveal the full version
of the view switcher, including a Logout link that gets rid of the
cookie with your passwords.

What the "appropriate view" should be is a little tricky.  Here are my
ideas on what it could be:
* last view used by this person, as saved in a cookie -- yes, the
cookie would have to save last non-display view used as well as last
view used
* user's preference as recorded in Site.Preferences-UserName (display
view shouldn't be eligible here)
* admin's preference as recorded in Site.Preferences or config.php. 
Maybe this be an array, so that the admin can reorder the views to
suit the site's usage.  When changing out of display view, check the
array for the topmost item that does not equal display.
* author view
* standard view

It's the behaviour that I personally would like for my wiki-as-CMS
sites.  How does it sound to the rest of you?

Bronwyn




More information about the pmwiki-users mailing list