Board Logo

Multiple Menus for Tigra 2.0
JimSelleck - 4/8/2007 at 04:38 AM

There are lots of discussions here detailing how to put multiple different menus on a page and on a site for Tigra 1.0, and in one detailed procedure there is a notation that the procedure is different for 2.0, but I am not finding any detailed directions.

This is frustrating to find in such a great product, and frankly I am amazed that the builder does not ask how many menus there are already on the site, as it could easily change the scripts generated and give different file names. Having to do it all manually is a curious throwback.

Anyway, I have Tigra 2.0 Gold, and am installing it on a site with a large number of static pages. I want TWO Tigra menus on each page. One will be the same on ALL pages, the other will be unique to the page it is on. So far, given the confusing array of different instructions on here, I have NO idea how to get even the second menu configured on the FIRST page. I've been renaming files and adding script lines, but I have NO clue if I am doing it right.

Isn't there a single detailed step by step explanation SOMEWHERE for how to put multiple menus on a site/page???

Mainly all I find in the docs is "yes, you can do it!". That's NO help without an explanation of HOW.


JimSelleck - 4/8/2007 at 04:59 AM

Okay, I have my two independent menus working on my first page. However, it took a lot of hacking through the files and trial and error to figure out how to make the changes, especially in the CSS file.

I still think there ought to be a more semi-automatic way to do that incorporated into the Builder.


jenpen2 - 10/2/2008 at 12:04 AM

Jim, did you ever find any documentation for this? I'm about to start hacking away, would love some guidance.
Jen


JimSelleck - 10/2/2008 at 01:02 AM

Hi Jen.

It has been some time since I went through this, but you are welcome to look at the page I was working on last year:

www.videotopsecrets.com

If you "view source" on the first page, you'll see that what I basically did was to create a separate "items" and "template" file for each menu on any given page. In theory, you could have as many menus as you want by giving those files different distinct names.

If you use Firefox browser with the Web Developer extension, you will be able to grab all of the Javascript and CSS to see what I did.

Best of luck!

Jim


jenpen2 - 10/2/2008 at 01:38 AM

Thanks Jim, that's good to hear because that's what I've just done. But I've gone wrong somewhere. My second menu doesn't display and I get a JS error saying "this.link.style.pixelLeft is null or not an object". I found this code in menu.js but I'm no programmer, not sure what to do about it. Any ideas? Much appreciate your help. Jen


JimSelleck - 10/2/2008 at 01:48 AM

I am a programmer, but Javascript manages to get me all tangled up at least once a week. ;->

Look through whatever you have scripted with extreme care, I mean character by character. Remember that capitalization COUNTS, and entire Javascript empires can be toppled simply by using one ( parenthesis character when you were supposed to type a { curly thing, OR if you simply leave out a ; semi-colon at the end of a line!

I would start by assuming that whatever you have is fundamentally correct, but you most probably have a single malformed line in there with either a capitalization error or a punctuation problem.


jenpen2 - 10/2/2008 at 01:54 AM

Eeeuuuwww, yuk, OK I'll get the magnifying glass out ...
Thanks, Jen


jenpen2 - 10/2/2008 at 03:13 AM

Jim, I just noticed one thing:
I have created new configuration files and pointed the page at both sets of files - then I get the error. But if I point at either one or the other set, the menus work perfectly (but of course I can only get one at a time to display. Is this a clue?
It indicates to me that, individually, both sets of files are correctly coded and correctly linked to. But something goes wrong when I try to display both at once.
Confusing.


jenpen2 - 10/2/2008 at 03:18 AM

OK, I just fixed it, sort of. I had created at pointed at a second "menu.js". When I removed "<script language="javascript" src="menu_p.js"></script> the second menu has appeared, and no error message. Hallelujah!
It's not reading its own stylesheet, but that's another story ...


tigra - 10/6/2008 at 07:43 PM

http://www.softcomplex.com/forum/viewthread_999/


jenpen2 - 10/8/2008 at 12:31 AM

Excellent, thanks! The thing I had forgotten was to change .m0 to .m1 in the second stylesheet.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/