Introduction
  Publishing web pages
  RXML
  Information tags
  String tags
  Variable tags
  URL tags
  If tags
  Graphics tags
  Database tags
  LDAP
  Programming tags
  SSI tags
  Image maps
  IntraSeek
  LogView
  Templates
  Navigation
  SiteBuilder tags
    <sb-if>
    <sb-login>
    <sb-menu>
    <sb-output>
  Supports system
  Security
  Appendix
 
<sb-menu> SiteBuilder tags

 

Produces a menu from a menu file or directory listing, suitable for usage together with the <navigation> tag.

 

Attributes

menu=filename
Reads the menu from a menu file with this name. If there are no menu file in the current directory and a dir, type or glob attribute is present, a directory listing will be used. If not, the tag will search for a menu file with this name in the parent directory and its parent directory until a suitable menu file is found or all directories has been tried.

above
Only produce the part of the menu above the selected entry. Above can be combined with selected or below.

selected
Only produce the selected entry. Selected can be combined with above or below.

below
Only produce the part of the menu below the selected entry. Below can be combined with above or selected.

history
Creates the menu from all the directories in the path, including the current directory.

dirs
Create a menu from all directories in the directory specified by the attribute or the current directory. Can be combined with the glob and type attributes as well as the menu attribute.

glob=glob-pattern, glob-pattern, ...
Create a menu from the files whose name match one of the glob patterns. It searches for files in the directory specified with the path attribute or the current directory. Can be combined with the dirs and type attributes as well as the menu attribute.

sort=variable, -variable, ...
Sorts the result according to one or several of the available variables. The same variables that are available to the <sb-output> tag are available for sorting. A "-" put before the variable name will change the sort direction. By default the sort order is title, filename.

type=glob-pattern, glob-pattern, ...
Create a menu from the files whose content type match one of the glob patterns. It searches for files in the directory specified by the path attribute or the current directory. Can be combined with the dirs and glob attributes as well as the menu attribute.

path=path
Change which directory the dirs, glob and type attributes should work on.

notitle
Include files or directories that does not have any title set.

index
Include the index.html file in directory listings. By default the index.html file is omitted.

selected=filename | path
Make this file selected.

Note that above, selected and below may be combined.

 

Example


<navigation bg=black height=100 width=100> 
  <textstyle scale=0.5 xspacing=4 yspacing=4> 
  <boxstyle middle text bg=darkblue fg=white alpha=255> 
  <boxstyle middle text selected bg=purple fg=yellow alpha=150> 
  <boxstyle middle text mouseover bg=darkblue fg=yellow alpha=255> 

  <sb-menu path='../' dirs>
</navigation>

Appendix Database tags Graphics tags If tags Image maps Information tags IntraSeek Introduction LDAP LogView Navigation Programming tags Publishing web pages RXML Security SiteBuilder tags SSI tags String tags Supports system Templates URL tags Variable tags