Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...jquery mobile skinjquery mobile skin
Previous
 
Next
New Post
8/31/2011 7:01 PM
 
I am trying to create a skin using the jQuery mobile framework.

The basic structure of a page needs to be as follows:

<!DOCTYPE html> 
<html> 
<head> 
<title>Page Title</title> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<link rel="stylesheet" href="http://code.jQuery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" /> 
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> 
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0b2/jQuery.mobile-1.0b2.min.js"></script> 
</head> 
<body> ...content goes here... </body> 

</html>
I know how (or at least I think I know how) to structure the structure of the page within the <body> element.

I have no clue how to modify the items in the <head>
As far as I can tell this is being driven by the Default.aspx page.
I don't want to make any changes to the Default.aspx page because we are using other traditional skins in the site as well.

Is there a way to programmatically change the elements in the <head> tag so that it can conform to this template?

Any help is greatly appreciated.
Jack
 
New Post
9/1/2011 1:12 PM
 
I cannot be done without adding code to your skin with core DNN, for that I wrapped the code (and other stuff) to a skin object.
http://bit.ly/okMXts
You can download it from Codeplex, it's open source.
 
New Post
9/1/2011 3:46 PM
 
Hey Jack, I thought I would just add another two cents.

If you're going to go the route that Timo advised (highly suggested), here is the code that I use to add the meta tag.

< fortyfingers:STYLEHELPER ID="STYLEHELPER1" runat="server" AddBodyClass="True" AddMetaTags="viewport:width=device-width, initial-scale=1" / >

As for the script files, you can easily add scripts with "AddJsFile" (in the documentation) but you may want to look into your Host settings to define jquery first. You wouldn't want to include it twice.

Aaron
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...jquery mobile skinjquery mobile skin


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out