Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.23 KB

TIPS_TRICK.md

File metadata and controls

44 lines (34 loc) · 1.23 KB

DNN quick setup on Local Computer

  • Download and Install NvQuickSite
  • Use NvQuickSite to Create a new DNN site

Set default container on Pane

<div id="Pane" containertype="L" containername="FolderName" containersrc="MyContainer.ascx" runat="server"> </div>

  • containerType = "G" (global) Host Container || "L" (local) Site (Portal) Container
  • containername = Folder name of container
  • containersrc = Container file name (.ascx)

Add another file on DNN Skin

<!--#include file="Common/AddFiles.ascx"-->

Add Server code on DNN Skin

<%@ Import Namespace="DotNetNuke.Entities.Portals" %>
<%@ Import Namespace="DotNetNuke.Entities.Tabs" %>
<%@ Import Namespace="DotNetNuke.UI.Skins" %>
...

<script runat="server">

  public string pageSettings { get; set; }
    
  protected override void OnInit(EventArgs e)
  {
  ...
  base.OnInit(e);
  }
  
  protected override void OnLoad(EventArgs e)
  {
    base.OnLoad(e);
	  if (!IsPostBack) {
    ...
    }
  }
</script>

Using a Different Version of jQuery via CDN

Using a Different Version of jQuery via CDN