Administrator Manual > Website Structure > Templates

  

 

 

Templates

 

Templates are the framework that defines the appearance and layout of Arena sites. Templates are in HTML inside of an ASP.NET page and allow a huge amount of versatility both in their own content and design and in the design of your website. The HTML format of templates is coded in C# and is saved as an ASP module file (.ascx).

While the majority of your website uses the same template file, you may encounter a few pages where you want to use a different template, such as the home page on the Arena-managed external website. Arena includes default templates used throughout the application with available alternate templates.

From the Administration menu, click the Templates option located under the WEBSITE heading to view a list of all available templates. Click a template and the Pages tab to display all pages that use the selected template. If no pages display, the template is not currently in use. (You must have all templates listed on this page in order to apply them to an Arena page.)

The template files are located in the ~ArenaChMS/Arena/Templates folder on the web server. There are several additional templates available in this folder. To apply a template to a page, you first need to add the template to the Arena/Templates page.

While you can create a new template from scratch, you can also edit an existing template or copy an existing template and edit the copy. If you do elect to create a new template, consider consulting with a web developer to do so. However, it is very easy to simply copy and modify one of the default templates included with Arena. (While a great deal of a template’s structure is made from HTML tags, the key elements of the template are the ASP.NET tags. These ASP.NET tags are defined in the .CS code behind files provided with the Developer license.)

If you elect to edit an existing template, it is recommended to first click the Pages tab of the template to review all pages that use the template. Any changes made to the template applies to all of the pages.

Add a New Template


1.          Go to the ArenaChMS folder on the Web Server.

2.          Add the new template file to the ArenaChMS/Arena/Templates folder.

3.          From the Administration menu, click the Templates option located under the WEBSITE heading.

4.          Click the Add New Template link. Arena creates a placeholder needed to map to the new template file.

5.          Click the Edit Details button for the new template.

6.          Enter a Template Name, the URL path for this template and a Description for this template. (The URL path is the specific location of the ascx file.)

7.          Click the Update button. You can now add modules to the content areas of the template itself or apply the template to an existing page.

 

Change a Template


1.          Go to the desired page.

2.          Click the Edit Details link on the Page Details tab.

3.          Select the desired template from the Template drop-down.

4.          Click the Update button. Often when you change a template, modules are misplaced. If this occurs, Arena adds a new tab with the misplaced modules. You need to resolve the misplaced modules before proceeding.