Software A/S (Ltd). vi INTRODUCTION What this document is about This document explains how to implement designs in Dynamicweb 7.1 and forward. It introduces the concept of Designs and Layouts and explains how these templates is being setup and used. Who this document is for This document is for frontend developers and designers that needs to implement the overall design of a Dynamicweb solution. Related documents Technical Release Notes, Dynamicweb 7.1: Describes technical issues included in Dynamicweb 7.1. News Using master pages (6th July 2010): Document updated with information on using master pages. See 6 Using master pages. 19.1.0.3: InlineStylesheet template tag no longer includes background-image from Dynamicweb stylesheet. 19.1.0.3: Stylesheets template tag no longer includes the external CSS chosen on the Dynamicweb stylesheet. 19.1.0.4: Possibility to overrule parsing of Title-tag, Content placeholders and navigation. See 8.2 Overruling parsing rules.
2010 Dynamicweb Software A/S (Ltd). 1 1 DESIGNS 1.1 Concept Designs and Layouts are a concept being introduced with Dynamicweb 7.1 to really improve the time and effort of implementing a Design in Dynamicweb. A design is a collection of layouts. A layout is an html file containing the markup that makes up an entire webpage layout. Example 1 – desing and layout structure Design 1 (Folder on disk) o Frontpage (File on disk – i.e. Frontpage.html) o Sub Front Page (SubFrontPage.html) o Content Page (ContentPage.html) o Produt Page (ProductPage.html) This new approach handles several issues with the current way of implementing designs. Today the design, templates and setup is dependent on some registration in the administration. This information is placed in the database and makes it cumbersome to move a design from one solution to another. This new approach makes it possible to copy a design from one solution to another in minutes. It takes a great deal of knowledge of Dynamicweb template hierarchy to setup a design. You have to split the html of the design in several different templates making it not that transparent. Paragraph setup templates are needed to be used to have multiple containers for content. This requires setup on every page and an editor needs to learn how to use these. All of these issues are eliminated or minimized with the new approach. Layout templates are Extremely fast to implement Easy to understand Have total design freedom Can be copied from one solution to another Are contextual – so templates for one website is not used on another Layout templates are a compilation of the previous Master, Page and Paragraph setup templates all of which is deprecated when using layouts. Dynamicweb 7.1 (19.1.0.0) is required for this way of implementing designs. Released May 2010. 1.2 Location Layout templates are placed in a new folder in Templates folder.
2010 Dynamicweb Software A/S (Ltd). 3 2 LAYOUTS 2.1 What is a layout? A layout is simply an html file that makes a webpage layout. It consist of one html file with markup and whatever css, js and image files needed to do a layout. For this guide a free downloaded example from http://www.freecsstemplates.org/ will be used (http://www.freecsstemplates.org/preview/condition/). 2.2 Installing a layout A layout is installed by copying the files that is needed to the design folder (/Files/Templates/Designs/Condition/) where “Condition” is the name of this design. From http://www.freecsstemplates.org/preview/condition/ markup, CSS and images are downloaded. See Figure 2. Figure 2. Downloaded layout files. The downloaded files are copied to (/Files/Templates/Designs/Condition/). See Figure 3. Figure 3. The layout files copied to the appropriate folder. The layout can now be previewed either by opening Index.html in a browser by double clicking or by accessing the URL where its location is, i.e.: http://head.local.dynamicweb.dk/Files/Templates/Designs/Condition/Index.html - see Figure 4.