[pmwiki-users] Re: Supporting different modes

Radu radu at monicsoft.net
Mon Aug 8 18:43:12 CDT 2005


At 05:43 PM 8/8/2005, Hans wrote:
>Monday, August 8, 2005, 7:31:41 PM, Radu wrote:
> > I would have done it the other way around: Temp seems to be a much
> > more clutterable place than Cookbook. A place for developing ideas.
> > Cookbook is for offering solutions rather than more problems, eh? ;)
>
>Well Cookbook.Modes  offers a solution, a working script :)
>http://www.pmwiki.org/wiki/Cookbook/Modes

Yep. I was referring to the discussion and testing around it.

>I may just rewrite the modes.php to a views.php script :))
>and create a group 'Views' as a playground.

Say, how about using 'view templates' maintained as wiki files? They 
would be admin-protected and sort of like the Site.EditForm. I mean, 
we already have so much stuff in page format (SideBar, TopPage, 
Footer...) If we come up with the necessary markup to 'assemble' 
groups of pages named PmWViews.$View-$Element into something like 
PmWViews.$View, the current pmwiki mechanisms should be enough to 
give us full-fledged views...


E.g. for ReadOnly (a.k.a Stealth) would pull together:
* PmWViews.ReadOnly-TopBar
* PmWViews.ReadOnly-LeftBar
* content
* PmWViews.ReadOnly-Footer

...and Site.Author would add:
* PmWViews.Author-BottomBar
* PmWViews.Author-Footer

...and Site.PIM would add/replace:
* PmWViews.PIM-RightBar
* PmWViews.PIM-BottomBar
* PmWViews.PIM-Footer

...etc.

All in all, it looks more like a really complex skin, with lots of 
conditionals based on the $_GET[?]  ?mode=Value or ?view=Value


Cheers,
Radu
(www.monicsoft.net) 





More information about the pmwiki-users mailing list