SchwingSkinHelper 1.0 templatable SkinObjects
host posted on July 26, 2010 10:57
What is SchwingSkinHelper
SchwingSkinHelper is the SkinObject Package that comes with SchwingSkin. This contains among others templatable versions of default SkinObjects that come with DotNetNuke.
Sometimes you get a design or make a design yourself that just doesn't convert well to the standard SkinObjects you need more layout freedom. At the moment there are 3 (PageTitle, ModuleTitle, BreadCrumb) but others will follow.
PageTitle and ModuleTitle
The default Title SkinObjectj ust render the title as
<span class="skinobject">Title</span>
Although this will suit most I prefer to ave cleaner HTML and I want to define either my own format or my own tags not span but (h1,h2,h3,etc.). This module has 2 settings:
TagName
Here you just enter the tag-name for the HTML tag you want your title to be in
TagName="h2"
TagFormat
With this one you have more freedom and you can put anything in there as long as you keep in the "{0}" this will be replaced by the actual page- or module title.
TagFormat="<h1 class='this that'>{0}</h1>"
BreadCrumb
This design freedom you will also have 1n the BreadCrumb SkinObject
CrumbTemplate
This is the code that will make up the entire HTML for the BreadCrumb. The "{0}" is the replacement for the home item and the "{1}" replacement is for the crumb path.
CrumbTemplate="<ul class='horizontal'><li><b>You are here : </b></li>{0}{1}</ul>"
HomeTemplate
This can be used if you want to have the home item constantly in your template but in most cases it is kept empty ( needs better implementation )
ItemTemplate
This is used for the actual links "{0}" is for the link and "{1}" is for the tab name
ItemTemplate="<li><a href='{0}'>{1}</a><span class='divider'> >> </span></li>"
ActiveItemTemplate
This is used for the active tab, this one only has one replace "{0}" is for the tabname
ActiveItemTemplate="<li><span>{0}</span></li>"