@DNNCon Don’t forget to include #DNNCon in your tweets!
Skinning Tips, Tricks, Hacks & How Tos Lee Wise / Front End - - PowerPoint PPT Presentation
Skinning Tips, Tricks, Hacks & How Tos Lee Wise / Front End - - PowerPoint PPT Presentation
Skinning Tips, Tricks, Hacks & How Tos Lee Wise / Front End Developer @theleewise Don t forget to include #DNNCon in your tweets! @DNNCon 10 Pound Gorilla Team Everything DNN Everything Else Skins Internet Marketing
@DNNCon Don’t forget to include #DNNCon in your tweets!
10 Pound Gorilla Team
Everything DNN
- Skins
- Modules
- Development
- Consulting
Everything Else
- Internet Marketing
- Web Development
- Graphic Design
- SEO
- Social Media Marketing
- Adwords
- Online Marketing
- Email Marketing
@DNNCon Don’t forget to include #DNNCon in your tweets!
My Goal
“No Duh” “That’s really stinkin’ cool!”
@DNNCon Don’t forget to include #DNNCon in your tweets!
Configure Viewport
Using the meta tag we can set your page to to be displayed properly on mobile devices instead of just be a zoomed out version of your desktop
- design. By utilizing DNN's
"Meta" skin object we can do this right in the skin.
@DNNCon Don’t forget to include #DNNCon in your tweets!
You can insert the content of one file into another #include
- directive. Use this to create functions, headers, footers, or
elements that will be reused on multiple pages
Include Files
@DNNCon Don’t forget to include #DNNCon in your tweets!
This is a skin object that allows you to include JavaScript and CSS files in the head of the document.
Client Resource Management
A great way to utilize this is with Google fonts.
@DNNCon Don’t forget to include #DNNCon in your tweets!
Output duplicate menus for different viewport sizes.
Desktop & Mobile Menus
@DNNCon Don’t forget to include #DNNCon in your tweets!
By utilizing the available attributes "ExcludeNodes" & "IncludeNodes" you can create several different menus. The most common use of this is with the two sets of navigation usually at the top of the page and one being the more prominent and important and the other being a smaller, secondary set of menu items.
Multiple Menus
@DNNCon Don’t forget to include #DNNCon in your tweets!
Multiple Menus (Example)
@DNNCon Don’t forget to include #DNNCon in your tweets!
In the skin, content can be set to show or hide based on a condition such as user being logged in or has a specific role. This would free you from having to create panes and using modules with these permission restrictions.
Conditional Content
@DNNCon Don’t forget to include #DNNCon in your tweets!
Conditional Content (Example)
@DNNCon Don’t forget to include #DNNCon in your tweets!
Setting some dynamic and conditional data as CSS classes or HTML data attributes allows you to make style and layout changes simple in CSS.
Dynamic Attributes
@DNNCon Don’t forget to include #DNNCon in your tweets!
Dynamic Attributes (Example)
@DNNCon Don’t forget to include #DNNCon in your tweets!
Dynamic Attributes (Code)
Output
@DNNCon Don’t forget to include #DNNCon in your tweets!
You can add various properties of the site, page, and user to a JavaScript object for client side access to such information like the current page id or the roles of the current user.
DNN Properties In JavaScript
@DNNCon Don’t forget to include #DNNCon in your tweets!
DNN Properties In JavaScript (Code)
dnnVars.page.name would output something like: “My Awesome Page”
@DNNCon Don’t forget to include #DNNCon in your tweets!
- http://www.10poundgorilla.com/DNN/Skinning-Tool
- https://github.com/10-Pound-Gorilla/DNNCON-15-Skin-Tricks
- http://boomerangdns.com/Computers/Specifications/DNNDotNetNukeStuff/
DotNetNukeModuleTokens.aspx
Resources
@DNNCon Don’t forget to include #DNNCon in your tweets!