IntroductionIntroduction
  Publishing web pagesPublishing web pages
  RXMLRXML
  Information tagsInformation tags
  String tagsString tags
  Variable tagsVariable tags
  URL tagsURL tags
  If tagsIf tags
  Graphics tagsGraphics tags
  Database tagsDatabase tags
  LDAPLDAP
  Programming tagsProgramming tags
  SSI tagsSSI tags
  Image mapsImage maps
  IntraSeekIntraSeek
  LogViewLogView
  TemplatesTemplates
    <tmplinsert>tmplinsert<tmplinsert>tmplinsert
    <tmpldefault>tmpldefault<tmpldefault>tmpldefault
    <tmplblock>tmplblock<tmplblock>tmplblock
    <tmpldefaultparam>tmpldefaultparam<tmpldefaultparam>tmpldefaultparam
    <tmplinsertblock>tmplinsertblock<tmplinsertblock>tmplinsertblock
    <tmplinsertall>tmplinsertall<tmplinsertall>tmplinsertall
    <tmplinsertexcept>tmplinsertexcept<tmplinsertexcept>tmplinsertexcept
    <tmplhelp>tmplhelp<tmplhelp>tmplhelp
    <Examples>Examples<Examples>Examples
    <Default template>Default template<Default template>Default template
  NavigationNavigation
  SiteBuilder tagsSiteBuilder tags
  Supports systemSupports system
  SecuritySecurity
  AppendixAppendix
 
<tmplinsert> </> Templates

 

The <tmplinsert> tag inserts the first occurrence of a container tag in the content file. If the tag does not exists in the content file, a default value defined by the <tmpldefault> tag will be used.

<tmplinsert> is useful for handling tags that there should only be one of in the content file, for example the {title} tag in HTML. <tmplblock> and <tmplinsertblock> or <tmplinsertall> are used to handle tags that may occur more than once in the content file.

tag=name
Name of the container tag to insert.

 

Attributes

tag=name
Name of the container tag to insert.

The title is <tmplinsert tag=title>.

...

Hello World
Hi there

"=> >

The title is Hello World.

 

Example


The title is <tmplinsert tag=title>.

...

Hello World
Hi there

"=> >

The title is Hello World.