Logo
- Script
SiteLite 3.0
Navigare

The Script

Sample ]

A SiteLite script is a series of lines of different types. The order of pagelines and asociated block-lines must be according to the inherent dependencies and sitestructure. Except from that lines may appear in any order. Blank lines and lines starting with // are ignored.

Click on the bullet to see a full explanation of the scriptline and its intended use.

hitme SITEVERSION:3
hitme SITENAME:sitename
hitme SITECATALOG:sitecatalog
hitme SITEURL:siteurl
hitme RESOURCES:rescat
hitme SITEEDITOR:siteeditor
hitme KEYWORDS:keyw[,keyw[...]]
hitme OPTIONS:option[,option]
hitme ATEMPLATE:type,location
hitme REPLACE1:out,in
hitme REPLACE2:left,right,in
hitme PRECOPY:from,to
hitme POSTCOPY:from,to
hitme INDEXWORDS:[indexname,]location
hitme COLLECTION:collectionname,leftpar,rightpar
hitme pagelevel,pagename[,type[,location[,author[,message[,option]]]]]
hitme    PAGETIP:text
hitme    BLOCKS:location[,location[...]]
hitme    FRIENDS:pageid[,pageid[...]]


Sample

A very simple script without own templatedefinitions. The site use only pagetypes (I,P,PRINTALL) which will produce "standard" templates automatically. No replaces, no collections, no options.

Note that the printpage has level 0. This indicates that the page will be built, but not included in the sitestructure, it will not appear in tables of contents.

// Scriptfile for website MySite
// General site section

SITEVERSION:3
SITECATALOG:C:\mysite3\
KEYWORDS:sitelite,website
SITENAME:MySite
SITEEDITOR:<a href="mailto:my.self@home.net">My Self</a>

// Page section

1,Home,I,index.html
BLOCKS:blocks\b-index.html

1,Sitemap,P,pages\toc.html
BLOCKS:blocks\b-toc.html

1,Page1,P,pages\pageone.html
PAGETIP:This page describes the fundamental issues
BLOCKS:blocks\b-page1.html

1,Page2,P,pages\pagetwo.html
BLOCKS:blocks\b-page2.html

// a print-page, not included in structure

0,All Pages,PRINTALL,pages\allpages.html
BLOCKS:blocks\b-allpages.html


November 30, 2004
Navigare
http://www.ia.hiof.no/~borres/sitelite/ver30/ http://www.ia.hiof.no/~borres/sitelite/ver30/ http://www.ia.hiof.no/~borres/sitelite/ver30/