Recent Questions
Q: My site has three levels of a folder structure. Can I create a menu that will allow me to link in and out of folders? Or must I design three menu's with different link locations.
A: You can use one menu.
Use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];
So, link path will be look so:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.
Q: Can you please give me an example of how I would return the full path to the selected item of the web site menu?
A: See the following example:
function getFullPath(mInd){
var result='';
// get pressed item
var params = dm_ext_getMenuParams(mInd);
if (!(params[2]>=0)) return '';
function getPathForItem(mInd,smInd,itInd){
// get for this item
var params = dm_ext_getItemParams(mInd,smInd,itInd);
var result = params[2]+ '('+ params[3]+')';
// find root item id
if (smInd <= 0) return result;
params = dm_ext_getSubmenuParams(mInd,smInd);
for ( var smInd_=0;smInd_ for ( var itInd_=0;itInd_ itParam = dm_ext_getItemParams(mInd,smInd_,itInd_);
if (itParam[0]=arams[2])// id
return result + '->' + getPathForItem(mInd,smInd_,itInd_);
}
}
return result;
};
return getPathForItem(mInd,params[1],params[2]);
}
Q: I would like to setup a menu that is Horizontal at level 1,Horizontal at level 2, then vertical from then on. Can your system handle this? Even if I need to manuallytweak something that would be fine.
A: Unfortunately, the menu can't do that. You can only set theorientation for the top-menu and its submenus.
Q: I am setting up a menu with word wrapping "on". Is it possible to have the wording in the middle of the text go to a new line?
If so, how do I do that?
A: Unfortunately, you can't do it.
You can only set the following parameter
var noWrap=0;
and use <br> tags in the text, for example
["ffffffff<br>fffffffffffff<br>fffffffffff Info","", "default.files/icon1.gif", "default.files/icon1o.gif", , , "0", , , ],