![]() ![]() |
Templates[ Standard ] [ Using templates ] [ Frames ] You may have any number of templates in a site. You connect the template to the actual page in page-line in the script: Level,PageName,TemplateType,PageLocation,,, SiteLite autmatically generates templates for types I,P,PRINT,PRINTALL, and some templates for frame-based solutions, see below. You will most certainly want both to edit the standard templates and introduce your own templates for other types of pages. You introduce a new template type by the scriptline: ATEMPLATE:TemplateType,TemplateLocation Templates may be collected from any address, but you should notice the following: Note 1 Templates collected from an absolute URL are copied to the templates-catalog each time the script is executed. If you edit this local copy, you should correct the location accordingly or disconnect the internet to avoid that your changes are lost in the next build. Note 2 Unless you have good reasons for it, all templates you introduce should be placed in the templates- catalog, and all images they refer should be placed in the gfx-catalog. This strategy ensures that SiteLite is able to correct all references without naming conflicts when a template is used to build a page. StandardThe basic templates that are automatically produced by SiteLite for a no-frame solution are the following:
The layout of the P and I templates are based on tables and are like this: ( html-source )
The templates use a number of images that are all referenced as gfx/. SiteLite will pick up and recalculate these links to match the actual page that is using the template. The images in the standard templates are:
In addition to these SiteLite will use a few more images when building a page:
All the images mentioned are produced in the gfx-folder and may be changed by you. The PRINT template, nf_print_template.html has a much simpler layout and use less images. Using templatesConsider a few examples:
FramesSiteLite can easily be used to build and maintain frame based sites. You have all the freedom you would like to set up the framelayout. The easiest way to investigate frames in SiteLite is to build a new site with frames, Menu File - New, and check the Use Frames- box in the dialog box. SiteLite suggests a simple solution with a frame structure:
SiteLite produces 4 page lines which describes the frame structure in the script: 0,Frameset,FF,index.html 0,Topframe,FT,top.html 0,Leftframe,FL,left.html 1,Home,FI,home.html BLOCKS:blocks\src_home.html The three first page lines has level 0, and will thus never appear in tables of contents. The best thing is to investigate the four pages. It is important that the name given to the home-frame in the page Frameset matches the name of the page: home. You will also see that SiteLite has a separate set of templates for frame-based sites. Their meaning and intended use should be evident from the names and the way they are used in the site SiteLite generates. Templates meant for frames have names starting with f_ as opposed to the templates for non-frame sites which begin with nf_. The predefined templates are:
You are of course free to define your own templates, and your own frame structure.
|