Table of Contents

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

    The <tmplinsertblock> inserts one or several custom tags defined by the <tmplblock> tag. The content file will be searched for all occurrences of the tag or tags, and they will then be inserted according to the definition done with the <tmplblock> tag. Other tags in the content file will be ignored.

    It is possible to insert the contents several times. Each time an insertion is done the whole content file will be searched for appropriate tags. Between the insertions the tag definition can be changed, with another <tmplblock> tag defining the same tag.

    An exception to the rule that the whole content file is searched, is when a <tmplinsert> tag is used within a <tmplblock> tag. In that case, only the current tag will be searched, not the whole content file.

    Attributes
    tag,  

    Attributes

    tag=tag,tag...
    The tags to insert.
    Example
    source code
    
    <tmplblock tag=cow singletag attribute=name>
    $name$
    </tmplblock>
    
    <tmplblock tag=h1>
    
    $h1$ </tmplblock> <tmplinsertblock tag=h1> <tmplblock tag=h1 attribute=color> <tmpldefaultparam tag=color>black</tmpldefaultparam>

    $h1$
    </tmplblock> <tmplinsertblock=cow,h1> ...

    Cows

    Bad Cows

    "=> >

    result
    Cows
    Bad Cows

    Cows
    Rose THX

    Bad Cows
    Mad