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.
|