Template targeting give users the ability to designate custom skin content by assigning a page template** to specific skinning regions. In the case of Fiesta the custom HTML skinning variable exist:
Additionally there are over 30 other skinning variables that can be over-written using Deki Script.
In order to support skinning template targeting you need to make some minor modifications to your Deki. First you need to define which portions of your Skinning Template can have Deki content injected into them (for security reasons). To do this you need to crack open LocalSettings.php and add the following line:
$wgTargetSkinVars = array_merge($wgTargetSkinVars, array('customarea1', 'customarea2', 'customarea3', 'customarea4', 'customarea5'));
(LocalSettings.php - \var\www\deki-xxxxx\LocalSettings.php)
We caution that if certain skinning variables are over-written MindTouch Deki can essentially become useless. Please consider which skinning variable you are unlocking!!
By adding the $wgTargetSkinVars to LocalSettings.php your simply granting permission for the listed Skinning Variables to be overwritten with injected Deki content. In the above example you can see that I opened up all the custom areas in a skinning template. If you’re using Fiesta these custom areas are the same as the custom HTML areas that are found in Control Panel > Visual Appearance > Custom Site HTML.
Now that you’ve updated LocalSettings.php you can go to your Deki and start injecting content. To start lets first create the content that is going to get injected. Navigate to Tools > Templates and create a new template called ‘PageTemplateName’. Add some generic text such as “MindTouch Deki is awesome”, save and then navigate to your Deki homepage. Now click edit on your Deki homepage and add the following DekiScript:
{{ wiki.template("PageTemplateName", nil, "customarea1") }}
Using the DekiScript above you’ve injected your Page Template into customarea1. Now you can take this example a little further by adding some DekiScript into your Page Template. Navigate back to Tools > Templates > PageTemplateName and click edit. Add some of the following examples:
{{ web.link(user.uri,'Take me to my page') }}
{{ wiki.contributors(nil, 3) }}
{{ feed.list('http://feeds.feedburner.com/mindtouch?format=xml',5) }}
* Skinning Template - Refers to the markup (php and HTML) of a MindTouch Deki skin. Examples include Ace, Base, Deuce and Fiesta.
** Page Template - Refers to a user created MindTouch Deki template. Users can create page templates by navigating to Tools > Templates in MindTouch Deki.