UserLand Software
Powerful, cross-platform web scripting.
 

Frontier 5: Directives

Frontier Web Reference

Frontier for Windows Folder

Frontier for Macintosh Folder

Icons

Fat Pages

Outlines

Web menu

New Website...

Directives

PageHeader Attribute

Standard Macros

Tips and Tricks

Keyboard Commands

Useful Things

Site Source

Standard Directives: what they do and their default values.

#activeURLs
If true, URLs in rendered pages become activated.
Example: If true, the URL is placed into an HTML anchor tag using the URL as both the HREF and the link text.
Value: Boolean (true or false)
Default: true
#addLineFeeds
If true, adds line feed to carriage returns in published documents.
Example: on Windows, lines are terminated by carriage return plus line feed (cr + lf) combinations.
Value: Boolean (true or false)
Defaults: false for Mac and true for Windows roots
#adrPageData "websites.x.y.z"
Provides the location of the data to be added to the fat page.
#autoParagraphs
If true, paragraphs tags (single <P> tag) are inserted in place of double returns.
Value: Boolean (true or false)
Default: false
#bgcolor, #text, #link, #vlink,#alink
Called by {bodyTag ()} and included in the <body> tag
Value: string
Defaults with the New Site command: #bgcolor = FFFFFF, #link = 0000FF, #vlink = 800080, #alink = 008000
Note: also called by {pageHeader ()}
#clayCompatibility
If true, "---" on a line by itself becomes a <HR> tag and "***" anywhere in a line sets the text style to bold until the end of the line.
Value: Boolean (true or false)
Default: false
#defaultFileName
Name of the default page which can be different than the name defined with #siteDefaultName.
Example: index, default, home
Value: String
Default: index
#directivesOnlyAtBeginning
If true, only the directives at the beginning of each object are processed (this also speeds up rendering time).
Value: Boolean (true or false)
Default: true
#dropNonAlphas
If true, non-alphabetic characters are dropped from file names.
Value: Boolean (true or false)
Default: false
#expandGlossaryItems
If false, glossary items (quoted strings) in pages will not be expanded.
Value: Boolean (true or false)
Default: true
#fileExtension
Extension appended to file names.
Example: .html
Value: String
Default: .html
#glossary table
A subtable used as an organizational tool.
Contains the text substitutions called when Frontier renders a page.
#glossary directive
Add this directive to a page if you need a specific glossary for that page.
#glossary "websites.x.y.z"
#images
A subtable used as an organizational tool.
Contains the images Frontier will render when called by the imageRef or bgImageRef macros.
#imageFileCreator
Creator of image files when written to disk.
Example: MSIE for MS Explorer image files
Platform: Mac only
Value: String
#includeMetaCharset
If false, meta charset tag not included.
Value: Boolean (true or false)
Default: false
#includeMetaGenerator
If true a generator meta tag is added eg: <meta name="generator" content="Frontier 5.0 WinNT">
Value: Boolean (true or false)
Default: true
#indirectTemplate
If true, template is stored in user.html.templates.
Value: Boolean (true or false)
Default: false
#isFatPage
If true the page will render as a fat page.
The fat page information is added to the end of the HTML page as a comment.
Use with #adrPageData "websites.x.y.z"
Default: false
#isoFilter
If true, page will be run through string.iso8859encode,
turning high ASCII characters into html entities.
Value: Boolean (true or false)
Default: tue
#lowerCaseFileNames
If true, filenames will be converted to all lowercase.
Value: Boolean (true or false)
Default: false
#maxFileNameLength
Maximum length of a file name, including extension.
Example: DOS 8+3 naming should be set to 12 (8 + . + 3)
Value: String
Default: 31
#pageHeader
For details see PageHeader Attribute.
Used instead of {pageHeader ()} macro to provide more control over the contents in the <head> tag.
#prefs
A subtable used as an organizational tool. Directives for a site can be contained within the #prefs table.
Directives in the #prefs table do not need to be prefaced by a #, it will be assumed.
#processMacros
If true, curly brace macros {....} are processed
Value: Boolean (true or false)
Default: true
#renderOutlineWith
Used with Outlines, calls the renderer   "nameOfRenderer"  stored in user.html.renderers.
Note: Renders can also be stored in the #tools table of the site containing the outline to be rendered.
Syntax: #renderOutlineWith  "nameOfRenderer"
#siteDefaultName
Used with {outlineSite ()} and names the default page for the site.
Example: index, default, home
Default: index
Note: If #siteDefaultName is not defined #defaultFileName (or the value in user.html.prefs.defaultFilename) is used.
#template
Web sites pages are rendered with a template which controls the layout.
The most basic template will include:
{pageHeader()}
{bodytext}
{pagefooter()}
#textFileCreator
Creator code of text files when written to disk.
Examples: MSIE for MS Explorer, MOSS for Netscape, R*ch for BBEdit, NISI for Nisus Writer
Platform: Mac only
Value: String4
Default: MOSS
#title
Generally included in every outline or wp object as the first directive listed.
Used by the glossary to create relative links.
Used by {pageHeader(title)} to create the <title> tag
#tools
A subtable used as an organizational tool.
Files in the #tools table are not rendered when a site is Published.
#useImageCache
If true, only new images are written to disk.
Value: Boolean (true or false)
Default: false
#useGlossaryPatcher
Used with Next/Prev and must be true for Next/Prev to work.
Value: Boolean (true or false)
Default: true

   


 
Site Scripted By Frontier
© Copyright 1996-98 UserLand Software. This page was last built on 2/20/98; 2:10:10 PM. It was originally posted on 1/19/98; 2:49:44 PM. Webmaster: thea@scripting.com.