Adding Site-Wide HTML Tags

You can add site-wide HTML tags to the web page templates used to generate your application’s web pages.  This approach saves you from manually adding them to every page in your generated application.  The web page template files are design theme-specific and are located in Iron Speed Designer installation folders.  Template files can either be HTML files or they can be XSL page generation template files.

HTML design theme files:

…\Iron Speed\Designer v5.0.0\Design Themes

XSL page generation template files:

…\Iron Speed\Designer v5.0.0\Designer\CodeGenerator\PageTemplates

One example of a commonly used web page template file is Master Page.html, which is used as the basis for most of your application’s web pages.

Add the tags in the HTML’s <head> section of the file as shown below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title> </title>

<meta name="keywords" content="My Keywords">

<meta name="description" content="My Description">

<link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/Style.css"/>

</head>

When you generate your application, the contents in the Master Page.html file will be copied into every page of your application.

The added tags will only apply to future pages created after adding your tags to the web page template files.  Typically, new pages are created by the Application Wizard and the New Page dialog.  Existing pages in your application will not be updated and rebuilding your application (Build, Rebuild All) will not add these tags to your existing web pages.

Note that the Master Page.html file is design theme-specific, so changes you make should be duplicated in the Master Page.html file of all design themes if you intend to use other design themes.  Also, the web page template files are not displayed in Application Explorer in Iron Speed Designer because they are not part of your application.

Procedure

Step 1:  Locate the Master Page.html file for your design theme, e.g.:

C:\Program Files\Iron Speed\Designer v5.0.0\Design Themes\Andes\Pages\Master Page.html

Note: the web page template files are not displayed in Application Explorer in Iron Speed Designer because they are not part of your application.

Step 2:  Add your tags between the opening and closing <head> tags using your favorite text editor.

Step 3:  The site-wide tags will be included on every newly created page in your application thereafter.

See Also

Customizing Web Page Layout and Style

Using and Modifying Style Sheets

Using Frames in Layout Pages

Placing ASP.NET Directives in Layout Pages

Adding Site-Wide HTML Tags

Automatically Refresh Page on Periodic Basis

Capturing the Enter Key in Layout Pages