EndPreviousNextEnd EndPrint This TopicEnd

ASCX Templates

Template ASCX files are needed to map Contegro Containers to and are used by the Templates manager. Within the Templates manager, modules and global module settings are added and adjusted. The default site already has Default Templates set up for you to get started with.

 

1.Default templates (in conjunction with Template.css) should be updated or unlimited new templates can be created to suit the design of any website.

 

2.Once changes are made to any files (ASCX and CSS and Images) on your local drive, you need to FTP changed files back to the server.

 

 

To access templates used to create the default site on the Contegro console;

 

1.Go to Contegro Start > Designer Tools and select Templates.
 

2.Four main templates are generated (plus a Print Page Template) and saved when a new site is created.
 
ASCX Templates Console

 

 

 

To access templates used to create the default site for code editing;

 

1.Within your HTML Editor, locate the corresponding ASCX files.
 
ASCX Templates

 

2.You will also see the 'printpage.ascx' file, which will not show as a Template. For more details on the this file, please see the Printpage topic.

 

 

Default Code of 1Column Template

 

<%@ Control %>

<%@ Register TagPrefix="contegro" TagName="Container" Src="~/UserControls/Base/Container.ascx" %>

<script language="C#" runat="server">

//Script required to get application path of site for resolving source paths for images, scripts and stylesheets.

public string SitePath = string.Empty;

void Page_Load(object sender, System.EventArgs e) {if (Page.ResolveUrl("~")!="/"){SitePath =

Page.ResolveUrl("~");}else{SitePath = "";}}

</script>

 

<!-- [1 Column = .layout4] -->

<div id="outerWrapper"><!--[Design DIV] START -->

 

<div id="cH">

<!--[Design DIV] START -->

 

<!--[Container] START -->

<div id="cB"><contegro:Container id="cB" name="Banner" runat="server"></contegro:Container></div>

<!--[Container] END -->

            

<!--[Container] START -->

<div id="cT"><contegro:Container id="cT" name="Top" runat="server"></contegro:Container></div>

<!--[Container] END -->

 

<!--[Container] START -->

<div id="cN"><contegro:Container id="cN" name="Navigation" runat="server"></contegro:Container></div>

<!--[Container] END -->

 

<div class="clear">&nbsp;</div></div>

 

<!--[Design DIV] END -->

<div id="mainWrapper" class="layout4">

 

<!--[Design DIV] START -->

 

<div id="cPCWrapper">

 

<!--[Container] START -->

<div id="cPC"><contegro:Container id="cPC" name="Primary Container" runat="server"></contegro:Container>

<div class="clear">&nbsp;</div></div>

<!--[Container] END -->

 

</div><div class="clear">&nbsp;</div></div>

<!--[Design DIV] END -->

 

<!--[Container] START -->

<div id="cF"><contegro:Container id="cF" name="Footer" runat="server"></contegro:Container></div>

<!--[Container] END -->

      

</div>

<!--[Design DIV] END -->

 

 

Default Template

 

 

In this section

Mapping Containers to Templates

Mapping Modules to Templates

Global Module Functionality

Create a New Template

Covert HTML to ASCX Template

Topic Link