Template Targeting

Table of contents
No headers

Hey Eric, this is Damien we met as your office prior to FSOSS.  I hope you're doing well. 

The white-list has to be added to localsetting.php which is in the /DekiWiki folder.  I've pasted a copy of my LocalSettings.php below.

<?php

# This file was automatically generated by the Deki Wiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.

$IP = "/var/www/dekiwiki";
ini_set( "include_path", ".:/var/www/dekiwiki:/var/www/

<wbr/>dekiwiki/includes:/var/www/<wbr/>dekiwiki/languages" );
require_once( "includes/DefaultSettings.php" );
   
$wgEmergencyContact = "damien@mindtouch.com";
$wgPasswordSender = "damien@mindtouch.com";

$wgDekiApiKey        = "<wbr/>zBb4RkHsUUWG5mSpgoE8ocquxpB0sz<wbr/>w8";

$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBadminuser = "wikiuser";
$wgDBadminpassword = "Ye3g7Q0EkBFaTVxH";


$wgPreloadPages = array('GlobalTemplate');

$wgTargetSkinVars = array_merge($wgTargetSkinVars, array('customarea1', 'customarea2', 'customarea3', 'customarea4', 'customarea5', 'customarea6', 'customarea7', 'customarea8')); 


?>


You can see that I've set GlobalTemplate as the preload page and that I've allowed customarea1 through customarea8 to be overwritten by Deki Pages.  Once you have done this save localsettings.php and jump into Deki.

Now you need to make a new template page to be included and then edit /GlobalTemplate to tell it to load your new template page.  Go to /Template: and create a new page called NewHeader, add some content too.  Then go to /GlobalTemplate and add the following code.

   or


the custom areas are placed througout the design layout to ease the customization process.  You can see where they are placed by going to your control panel and viewing the Custom HTML page.

I hope that helps, please let me know if you're having any trouble
Tag page (Edit tags)
    You must login to post a comment.