Web Context

In the Designer the Web context is the folder that contains Web page templates.

When a Web template is created (see Creating a Web template with a Wizard) or when a Web context is added to a template (see Adding a context) the following happens:

  • The Web context is created and one Web page or section is added to it. You can see this on the Resources pane: expand the Contexts folder, and then expand the Web folder.
    See Web pages to learn how to fill a web page template in the Designer.
    Although only one web page can be generated per record when generating Web output, the Web context can contain multiple sections. One section is created at the start, but you can add more; see Adding a Web page.
  • A style sheet, named context_web_styles.css, is added to the template. If a Template Wizard was used to create the template, Foundation style sheets are added as well. Style sheets are located in the folder Stylesheets on the Resources pane. These style sheets are meant to be used for styles that are only applied to elements in the Web context; see Styling and formatting.

When the template is ready, you can:

  • Output the web page as an as an integral HTML file attached to an Email context in the same template.
  • Output the Web context in an automated Workflow using the Create Web Content task (see Workflow Help: Create Web Content).

See Generating Web output

The Web context outputs one HTML web page that contains the HTML text and all the resources necessary to display it. JavaScript files are added to the <head> in the generated HTML file. They are useful to add special features such as those offered by jQuery and its plugins, or MooTools. Style sheets are also added to the <head> and are used just as they would be used in a regular web page.

 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:48 AM