<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.
tag=tag, tag, ...
The tags to insert.
Attributes
- tag=tag, tag, ...
-
The tags to insert.
<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
"=> >
Cows
Bad Cows
Cows
Rose
THX
Bad Cows
Mad
Example
<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
"=> >
Cows
Bad Cows
Cows
Rose
THX
Bad Cows
Mad
|