|
Skins /
TriadTipsA collection of admin tips for the Triad
Changing page contentThe main page content is edited in the usual way. All other "surrounding" content including action links and buttons can be changed by editing the relevant subpage: See Site.Triad-Configuration? Tweaking colour and font settingsIf you want to tweak individual colours or font settings, you can do this by creating a file local.css in folder pub/css/ and add your custom css settings there. Triad uses a number of css stylesheets, which are in the skins/triad/css/ folder. Depending on the theme for colours and fonts choosen, triad uses one of the c-....css for colour settings, and one of the font-...css files for font, line height etc settings. Open the relevant file in a text editor, and figure out which of the settings you need to change. Then add your own custom setting to pub/css/local.css. That way a skin update will not overwrite your changes. Setting defaults from config.phpAll the default settings can be changed by setting them in config.php. This allows to have several wikis as part of a farm, using one farm-installed skin, but having different defaults, like color and font schemes. $DefaultColor = 'lightblue'; # lightblue, silverblue, seagreen, green, gold, choc, white, night, trans $DefaultFont = 'verdana'; # verdana or georgia $DefaultPageWidth = 'wide'; # wide, 800, 1000, 1300 or border $RightWidth = '170px'; # right bar width, set in px or em $LeftWidth = '170px'; # left (side) bar width, set in px or em $PageBorder = '20px'; # border width, set in px Setting different defaults for colors and fontsYou can set a new default color or font scheme in config.php by setting $DefaultColor = ' keyword '; or $DefaultFont = ' keyword '; for instance $DefaultColor = 'gold'; which will load the gold color scheme from the c-gold.css file by default. If you wish that only the default scheme is used then you need to disable the switching of style options (see next section). Switching off all style changing options (disabling cookie setting)Set in config.php Switching off selected style changing optionsSet in config.php Restricting style optionsIn skin.php place #-comment symbols at the beginning of each option in the $Page..List option array which should be disallowed. Leave only the options uncommented which are allowed. Adding more color (or font) optionsBest is to save a colour (font) css file under a new name, add a line to the $PageColorList ($PageFontList) array, like Setting different default color schemes for different groupsThis makes most sense if the colour changing option is disabled. See above the first two entries for this. If it is not disabled users will see the colours they have choosen last (unless they have not yet choosen a different colour scheme).
<?php if (!defined('PmWiki')) exit();
$DefaultColor = 'gold';
?>
Likewise defaults for other style options like fonts and layout can be set in config.php or group.php files. Using
|
>>clip<< content box specially styled for `RightBar. >><< |
content box specially styled for RightBar. |
Enclose your quotation with >>bquote<< ...quotation... >><<]. Use %qsource% for the quote source reference. Leave an empty line before closing the div:
>>bquote<< This is a quotation.... %qsource%— anonymous >><< |
This is a quotation.... — anonymous |
Enclose content to be right floated in a 200px wide box with >>news<< ...right floated content... >><<
>>news<< right floated content >><< normal content |
right floated content normal content |
Enclose your special sidebar text content with >>sideclip<< ...sidebar text... >><<
By default the searchbox and fontsizer are included as markup in the Site.PageHeader page. Edit the page to change this. You can relocate them to other page configuration pages, like the SideBar. Setting $EnableFontSizer = 0; will disable the fontsizing option and remove the sizer buttons. Setting
$EnableViewSwitcher = 0; will disable the switching of normal to big text view.
Set $EnableRightBarToggle = 0; and/or $EnableLeftBarToggle = 0; to disable the instant side column toggles.
A logo can be added to the Site.PageHeader page.
Triad now (2007-03-19) has a separate page to configure the titlebar: Site.TitleBar. Editing the contents of that page can give you different titlebar layouts. GroupName.TitleBar is also supported for group-specific titlebar settings. A page specific titlebar can also be created (see below). - The default Site.TitleBar page uses pagegroup and pagetitle style classes for the grouplink and title, which are defined in layout-triad.css and further in the color css files. You could create your own style classes for further customisations.
You can remove the group link in the titlebar on individual pages (or groups) with markup (:nogroup:).
Changing $EnableGroupTitle = 1; to $EnableGroupTitle = 0; in skin.php removes the group name from the titlebar for the whole site. You can also edit Site.TitleBar and remove the grouplink markup there.
A nice alternative for showing the group name in the titlebar is showing it as a link in the PageTopMenu. Add *[[{*$Group}]] to the list will do the trick. Adding *[[{*$Name}]] will show the page name as well, which may be useful information, since the page title may be different from the actual page name.
The normal page titles can be replaced with images of non-standard (fancy) fonts, by creating a page
with the string "-TitleBar" added to the name of the page, like "MyPage-TitleBar". Put the image as
attachment on this page, without any lines before or after (for instance: Attach:myfancyfonttitle.gif).
Best is to create a gif image of the title in special font, using a transparent background, in
an image editor. A page named as described above will take the place of the normal page title,
in the space of the titlebar. (from fixflow-v3e and gemini-v9e onwards)
Triad now (2007-03-19) has built-in support for Cookbook:Cluster and Cookbook:Hg, for easy display of a "breadcrumb trail" of group links in the titlebar. You may need to edit Site.TitleBar to put in the relevant breadcrumb markup (Cluster's breadcrumb PV is provided in the default).
Popup-EditForm is the default edit form and provides popup preview and help panes, as well as a wide edit window and double rows of buttons both abopve and below the edit textbox. If it is not wanted it can be disabled by commenting out in skin.php the line include_once("$SkinDir/popup2edit.php");. If the use of toggle buttons is not needed the line include_once("$SkinDir/showhide.php"); can also be commented out, which prevents these scripts from loading. If any of these scripts are loaded as a cookbook script then the corresponding code lines should also be commented out.
The included showhide.php script adds the popup preview and help functionality. The markup (:showhide div=divname ... :) can also be used on any other page to create toggle buttons to toggle whatever section or object. See ShowHide for details.