Table of Contents

  • Introduction
  • Templates
    · Introduction
    · <tmplinsert>
    · <tmpldefault>
    · <tmplblock>
    · <tmpldefaultparam>
    · <tmplinsertblock>
    · <tmplinsertall>
    · <tmplinsertexcept>
    · <tmplhelp>
  • Navigation
  • SiteBuilder Tags
  • Examples
  • References
  •  <tmpldefault> ... </tmpldefault> 
    <tmpldefault> is defined in the WebLayout Templates module.

    Defines a default value for use with the <tmplinsert> tag. In case the <tmplinsert> tag can't find a tag in the content file it will use the default value for that tag, as defined with <tmpldefault>.

    Attributes
    tag,  

    Attributes

    tag=name
    The name of the tag.
    Example
    source code
    
    <tmpldefault tag=title>
    No title.
    </tmpldefault>
    
    <tmpldefault tag=type>
    HTML
    </tmpldefault>
    
    The title is <tmplinsert tag=title>.
    
    The document is a <tmplinsert tag=type> document. ... Hello World Hi there
    "=> >

    result The title is Hello World.
    The document is a HTML document.