While parsing the skin from HTML file that has been developed by HTML developer. There are many unknown issues occurs. For example-
- Sub-Menu does not show under Main menu.
- Slider does not rotate in Homepage.
- Layout is malformed.
- Works fine when logged in but not when logged out.
Note: When you login as an administrator jQuery will always be available since the control panel bar request it.
Don't: Do not add script tag into page settings or in skin (.ascx) file.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
Do's:
In skin/module (.ascx) file, add the control for jQuery that is available on following path ""~/Admin/Skins/jQuery.ascx"". This will ensure that jQuery is available on every single page.
<%@ Register TagPrefix="dnn" TagName="jQueryScript" src="~/Admin/Skins/jQuery.ascx" %>
<dnn:jQueryScript runat="server"></dnn:jQueryScript >
There are optionally add public properties to register jQuery UI, DNN jQuery Plugins and Hover Intent can be set to True/False (False by default).
0 Comment(s)