[Pmwiki-users] Re: Skins, revisited

mistyfire mistyfire
Sat Oct 30 11:52:28 CDT 2004


This sytem of automatically selecting default skin "screen.tmpl" is very much 
appreciated. Now it would become much easier to handle skins by just refering 
to the directory name (of course with proper dir variables set) and also for 
skin packaging.

I have been using "easy-templates" v.1 from the cookbook.
demo: http://insteps.freelinuxhost.com/channel2/
Presently sidebar is empty but if you notice clicking any link at the top 
"Search In" section would give page using the full area.
.......and if any link at the bottom (later in DropDown) eg.WikiHelp would 
bring back the Sidebar.

This feature would be hard to implement if $PageSkinFmt variable is hardcoded 
in the config.php. 

Suggestion:
It would be great if something like "easy-template" could be default 
implemented. 
With settings in $PageSkinFmt for new users and directory wise template 
setting for advanced use.

Thus now, eg with this setting.
$PageSkinFmt='myskin';     # uses 'pub/skins/myskin/screen.tmpl' 
If Main.HomePage is clicked the code should first look for templated
1. 'pub/skins/Main/Main.HomePage.tmpl' 
then......if does not exist look for
2. 'pub/skins/Main/Main.tmpl' 
then......for
3. 'pub/skins/myskin/screen.tmpl' .......... last fallback to
4.  'pub/skins/default/screen.tmpl'

There could be another alternative (but a bit too much to ask),
--by specifying (:UseConfig config2:) in a wikipage,
when the page is viewed all settings are read from /local/config2.php and if 
not present then from /local/config.php
(Implementation this could be tricky as on switching config files previous 
settings have to be flushed)

Lot of powerful settings can be done with page wise template settings.
I was looking forward to use  "easy-templates"  like feature in v2.0 for use 
of data-entry wiki-form page. Where the use of full page without sidebar 
would feel more comfortable.

Krishn
---------------



More information about the pmwiki-users mailing list