This is an update to anybody interested in using the Sothink product to build a menu system for a large website. First, I like the product, the interface is much more intuitive than others I have tried so far, but I can’t get it to work when used in conjunction with a dynamic web template (.dwt). As far as I know, the approach I am trying to adopt is a recommended approach for anybody attempting to produce W3C compliant code.
As such, I would like to think that somebody at Sothink would be interested in resolving my problem and therefore I have posted the issue as described below to the technical support people. Ticket#2009091010002231
I have played around with the ‘web path’
under ‘global settings’
. There are 3 separate fields: script path, image path and link prefix
. So far, every permutation I have tried has not worked, BUT by manually editing the main menu.js file produced by the Sothink product I have got the system to work.
Of course, the idea of always having to do this every time I make a change is still problematic
I will describe a hypothetical example that more simply reflects my folder structure and the use of dynamic web templates. This system reflects tests being done on a local file system where file:// replaces http:// when global referencing was tried.
file://C:/Webs/My Web/ top level contains default.html
file://C:/Webs/My Web/html/page1 next level contains page1.html
file://C:/Webs/My Web/html/page2 next level contains page2.html
file://C:/Webs/My Web/html/menus contains all .js and .gif files produced
Initially, I only defined script path & image path to be “menus/”, i.e. no link prefix. Add the published code to my .dwt file, which is modified for relative addressing (../..) when copied to .html files. This is the code added to the .dwt:
Menus on the top level (default.html) worked, but menus associated with page1 and page2 were missing graphics .gif. So the addressing for the .js files works at all levels, but the addressing inside menu.js, which makes the calls to the .gif files does not.
In an attempt to avoid describing the many permutations tried, the following extract from a menu.js does work, but I had to edit the file manually, i.e. I still have NOT found a permutation in the ‘web path’ configuration that will do this automatically.
stBM(290,"tree71f1",[0," C:/Webs/My Web/menus/","", "blank.gif",0,"left","default","hand",1,0,-1,-1,-1,"none",0,"4a4a4a","transparent","","no-repeat",1,"black_f.gif"
Note: Trying to use global addressing when defining the script path and image path caused problems when the .js files were called from other than the top level and included fillers for <spaces> in the folder names, i.e. “My Web” go to “My%20Web”. This has to also be changed.
If anybody knows where I going wrong I would really appreciate an update as I otherwise think your menu interface is the best I seen. However, manual editing on each release would be a major showstopper. If a solution presents itself I will post an update.