Skinning Tips, Tricks, Hacks & How Tos Lee Wise / Front End - - PowerPoint PPT Presentation

skinning
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

@DNNCon Don’t forget to include #DNNCon in your tweets!

Skinning

Tips, Tricks, Hacks & How Tos

Lee Wise / Front End Developer @theleewise

slide-2
SLIDE 2

@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
slide-3
SLIDE 3

@DNNCon Don’t forget to include #DNNCon in your tweets!

My Goal

“No Duh” “That’s really stinkin’ cool!”

slide-4
SLIDE 4

@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.

slide-5
SLIDE 5

@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

slide-6
SLIDE 6

@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.

slide-7
SLIDE 7

@DNNCon Don’t forget to include #DNNCon in your tweets!

Output duplicate menus for different viewport sizes.

Desktop & Mobile Menus

slide-8
SLIDE 8

@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

slide-9
SLIDE 9

@DNNCon Don’t forget to include #DNNCon in your tweets!

Multiple Menus (Example)

slide-10
SLIDE 10

@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

slide-11
SLIDE 11

@DNNCon Don’t forget to include #DNNCon in your tweets!

Conditional Content (Example)

slide-12
SLIDE 12

@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

slide-13
SLIDE 13

@DNNCon Don’t forget to include #DNNCon in your tweets!

Dynamic Attributes (Example)

slide-14
SLIDE 14

@DNNCon Don’t forget to include #DNNCon in your tweets!

Dynamic Attributes (Code)

Output

slide-15
SLIDE 15

@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

slide-16
SLIDE 16

@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”

slide-17
SLIDE 17

@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

slide-18
SLIDE 18

@DNNCon Don’t forget to include #DNNCon in your tweets!

THANKS TO ALL OF OUR GENEROUS SPONSORS!