Table of Contents
Introduction
Templates
Navigation
SiteBuilder Tags
Examples
References
|
Example 1
This is a template suitable for intranets. It has simple search-field
and some user and date information at the top. The navigation
interface is the one described in the third example in the
navigation-chapter. This type of navigation interface will only work
well when you have alot of webb pages, structured more than a few
folders deep.
User: <b><sb-output user>
#full-name#</sb-output></b>
Todays date: <b><date part=mday>
<date part=month lang=se type=string>,
<date part=year></b>
Email: <sb-output user><a href=mailto:#user-name#@idonex.se>
<b><#user-name#@idonex.se>
</b></a></sb-output>
|
View complete source
|
The user and date information is displayed to keep track of printed
versions of the intranet pages.
<tmplblock tag=h1>
<a href="<file>#$h1$">
$h1$</a><br>
</tmplblock>
<tmplinsertblock tag=h1>
|
View complete source
|
The index is created from <h1>-tags found in the webb page and
is useful when you have long documents.
Headers
<tmplblock tag=h1>
<p>
<a name="$h1$">
<gtext bg=white fg=black nfont=gill
black scale=0.63>$h1$</gtext></a>
<br>
</tmplblock>
<tmplblock tag=nh1>
<p>
<gtext bg=white fg=black nfont=gill black
scale=0.63>$nh1$</gtext>
<br>
</tmplblock>
|
View complete source
|
The <h1>-tag also generates an automatic <a name=...> which is
linked from the index. The <nh1> is a tag generating headers looking
like the <h1>-tags but without adding the header in the index.
Edit button
<sb-output file>
<if match="#permission# is write">
<a href=#content-editor#>Edit</a>
</if>
</sb-output>
|
View complete source
|
The edit-link is created using the <sb-output>-tag with the file
argument. The <if match="#permission# is write"> check if the user
has write permissions on the file. If the user does not have write
permissions he will not see the link.
|