<sb-menu>
|
 |
<sb-menu> is defined in the SiteBuilder tags module.
Produces a menu from a menu file or directory listings, 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 read instead. 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 and including the selected
entry.
- below
-
Only produce the part of the menu below the selected entry.
- 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 whos 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.
- type=glob-pattern,glob-pattern,...
-
Create a menu from the files whos 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.
Example
source code
|
<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>
<mi href="/SiteBuilder1.0/Templates/references/" >Appendix</mi>
<mi href="/SiteBuilder1.0/Templates/templates/" >Introduction</mi>
<mi href="/SiteBuilder1.0/Templates/tags/" selected>Introduction</mi>
<mi href="/SiteBuilder1.0/Templates/examples/" >Introduction</mi>
<mi href="/SiteBuilder1.0/Templates/navigation/" >Introduction</mi>
<mi href="/SiteBuilder1.0/Templates/introduction/" >Introduction</mi>
<mi href="/SiteBuilder1.0/Templates/img/" >img</mi>
</navigation>
|
 |
|
result
|
Appendix
Introduction
Introduction
Introduction
Introduction
Introduction
img
|
|
|