The following skins demonstrate some DNN skinning techniques.
These DNN skins are only created for demo purposes, not production use.
They can all be downloaded for free from codeplex: demoskins.codeplex.com
DNN DDR Menu Examples
This example skin shows some of the basics of DDR Menu templating.
Basic examples for Token, XSLT and Razor templates.
Plus the use of NodeSelector and ExcludeNodes.
Demo portal: http://demo.40fingers.net/dnn-ddr-demo-skin
Please note that the Razor example has a DNN6 and a DNN7+ version.
I will add that in the next version.
A. If you installed the 01.00.00 version of this skin, first uninstall this before installing the new release.
B. For the RAZOR examples to work you should install the Razor host module.
C. Minimum DNN version: 06.01.00
Please note that this skin pack mainly demonstrates generating the Menu HTML you need, you should not expect any Styled Menu's
DNN Includes Demo Skin
This skin shows you how you can create a shared header or footer for the different skin variation in your skin package.
If you have a skin package with a lot of variations, the individual skin files often share a lot of content.
To make these kind of skin packages easier to manage a simple asp technique can be used, called includes.
Example: <!-- #include file="Includes/Header.ascx" -->
This comment will be replaced by the content of the referenced file if the page is processed.
(so the content will be placed inside the skin file, and is not a child, as is the case with a user control)
Although this is a bit "dirty" according to modern programming standards, it does work flawlessly and is easy to use.
(If you get any errors, the path to the included file is incorrect)
DNN Framework Attributes Demo Skins
This skin package shows you some of the DNN Framework data you can use in your skins (just like you can use <%=SkinPath%>)
The documentation and examples are hard coded in the skin (there are no skin objects in the skin but one ContentPane)
There are 2 versions:
1. Simple, with DNN framework attributes used inline
2. Advanced, which shows some attributes that are a bit more complex to add.
*Use of this skin.*
For all the examples to work, you will have to apply the skin to a page which is at least on level 2 (Level 0 being the root)
Also the portal should have a home and splash page set.
*Some of the examples in the skin:*
Portal URL / Alias = PortalSettings.PortalAlias.HTTPAlias
Portal ID = PortalSettings.PortalAlias.PortalID
Portal Description = PortalSettings.Description
Portal Name = PortalSettings.PortalName
Portal Admin Email address = PortalSettings.Email
Portal home folder = PortalSettings.HomeDirectory
Link to Home page = NavigateUrl(PortalSettings.HomeTabId)
Link to Splash page = NavigateURL(PortalSettings.SplashTabId)
Link to Host page = NavigateURL(PortalSettings.SuperTabId)
Link to Admin page = NavigateURL(PortalSettings.AdminTabId)
Page Description = PortalSettings.ActiveTab.Description
Page Link = PortalSettings.ActiveTab.FullUrl
Page Name = PortalSettings.ActiveTab.TabName
Page Title = PortalSettings.ActiveTab.Title
Page Keywords = PortalSettings.ActiveTab.KeyWords
Page Keywords = PortalSettings.ActiveTab.TabID
Page Level = PortalSettings.ActiveTab.Level