| Java menu knowledge base Path substitutions
The Pro applets of all the applet ranges allow something called
"path substitutions". These solve a problem caused by very complex
intranets and websites. Namely, much of the information you access
through your index may be buried very deeply in directory systems,
forcing you to build indices where every link consists mainly of
a repetition of the same very long path.
Path substitutions allow you to make a short alias for a long
path. This cuts your index size, cuts your development time,
and cuts index download time.
Currently 10 such aliases are available on the Pro applets. More
may easily be customized in for you.
To set up a path substitution, you enter the following parameter.
<param name=sub1 value="LINK:directory1/directory2/etc/">
The value must be the path segment you wish to abbreviate. You
must start with one of the recognised index file commands, such
as LINK.
To use a path substitution, you enter a line like the following in the
index file.
"TEXT:myText" "1" "" "SUB1:myFile.htm,myFrame" "[Message]"
The action performed by the applet is a simple string
substitution - "SUB1:" is removed and replaced by the
value of the parameter "sub1", whatever it might be.
Currently, 10 parameters from sub0 through to sub9 are
available.
|
|