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...Administration ...Administration ...Including jQuery in Skin PackagesIncluding jQuery in Skin Packages
Previous
 
Next
New Post
7/1/2010 1:39 PM
 
Hello All,

Novice here, trying to sort out all the nooks and crannies...

I would like to package a jQuery script with my skin installation package.  I know the script itself is sound, and that the site is properly configured to run the script, (I have inserted the jQuery directly into the .ascx file, and the script executes perfectly.) 

However, I would prefer to include the jQuery with the package itself, and not have to make edits to the .ascx file after installing the package.

I've tried including the script inside the .htm head; but the script does not carry over when the .ascx file is created, it seems as though the script is being sanitized out of the .ascx file?

I've also tried including the script as an external file, with similiar results:  I wondered if this might be because I used incorrect tags in the manifest file  (I am just using the standard "skinFile" tag, wasn't sure if I need a special script tag?)

To Summarize -

  1. Can jQuery scripts be included with the skin package on installation, so as not to require later editing of the .ascx file?
  2. If so, am I perhaps missing the correct tag in the manifest file, or any other considerations I should be aware of?  As I mentioned above, I know the script  itself is good, and I know the site is configured to support jQuery.

Any light that could be shed on the matter would be greatly appreciated!
 
New Post
7/2/2010 12:47 PM
 
Try this:

1) Backup your skin files from the \Portals\_default\Skins\NAME folder  (always a good idea when someone says 'try this' ;D )
2) Edit the ASCX to where the jQuery is functioning correctly
3) Delete the HTML to prevent re-parsing
4) Host > Extensions
5) Find your skin, click the "Edit" icon (blue pencil) next to it
6) at the bottom of the page, select "Create Package"
7) follow the steps provided
8) Retrieve your fully formed Skin Package from the \Install folder, or wherever you tell it to place the file during package creation

This should create a fully formed and manifested skin package with the ASCX file.

When I started, I too used the HTML->ASCX conversion method but since 5 came out, I've been pretty much only working with ASCX files. Once I got my head wrapped around the basic concepts (a lot of thanks to Lee Sykes at DNNCreative.com), I actually found this method to be easier and it lets me see my changes real-time. However I do see you're a novice so it is best to 'settle in' to where you're comfortable first. I do reccomend a subscription to DNNCreative as they have a wealth of tutorial videos that I've found indispensable for helping me get deeper into working with DNN's many facets.

Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Including jQuery in Skin PackagesIncluding jQuery in Skin Packages


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