Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

NetstreamsSkin

<< Maguila | Skins | Neutral >> (test page)

Summary:A skin entirely based on editable skin sections with a desktop-application like menu and php generated css files wich allows one to use a simple colorscheme.
Version:
Prerequisites:
Status:Experimental
Maintainer:Benjamin?
Categories: CMS Skins

Questions answered by this recipe

Skin Sections
I need a flexible skin entierly bases on editable skin sections. Every skin section is a wiki page.
CSS
I would like to define a color scheme consists of maybe 3 colors. The color definitions of the color scheme can be applied to all css files i want to use.
Desktop-Application like Menu
I would like to have access to all actions and config options at the same place. So I want a menu wich stays fixed at the top of the webpage.

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

A skin entirely based on editable skin sections with a desktop-application like menu and php generated css files wich allows one to use a simple colorscheme.

Tryout a demo on http://test.netstreams.org/skin. Login/Password is Author/test or Admin/test.

September 27, 2008 - The above demo url yields a 404 error.

Installation

  1. Download the package listed below and copy it into your pmwiki directory.
  2. Copy the sample config file doc/netstreams/sample-config_menu.php into /local/config.php or use it as sample to update your config.php file.

Customization

Skin Sections

You can show/hide skin sections either by markup or via page text variables. Using ptv's allows to set a value for the entire site, a group or a page. Group setting overwrite site settings, page settings overwrite group settings. The values are:

SettingValue
defaultno value
show1
hide0

List of Skin Sections:

NameMarkupPTV SitePTV GroupPTV Page
Menu(:nomenu:)1site_Menu1group_Menu1page_Menu1
Header(:noheader:)site_Headergroup_Headerpage_Header
Navigation(:nonavigation:)site_Navigationgroup_Navigationpage_Navigation
LeftBar(:noleft:)site_LeftBargroup_LeftBarpage_LeftBar
RightBar(:noright:)site_RightBargroup_RightBarpage_RightBar
Footer(:nofooter:)site_Footergroup_Footerpage_Footer

1) not enabled

CSS

Colorscheme

To create your own colorscheme, copy the docs/netsreams/netstreams_colorscheme.php to local/netstreams_colorscheme.php and change it to your needs.

Additional css files

  • Copy the docs/netsreams/local/cssfilepaths.php to local/cssfilepaths.php and add the paths of your css files to the array.
  • Use the template below for css files

CSS Template:

<?php 
return<<<EOF

//your css definitions here, example:
a { color:$CS_baseA }

EOF;
?>

Notes

This is a experimental release. Suggestions and bug reports are very welcome.

Release Notes

Initial release:

See Also

Contributors

Benjamin?

Comments

Edit - History - Print - Recent Changes - Search
Page last modified on October 02, 2008, at 02:48 AM