Board Logo

Sub-menu indentation issue
tselland - 3/23/2007 at 03:25 PM

I should preface this post with the fact that I am using Tigra Tree Menu PRO.

I am noticing something curious about our menus for which I can find no good explanation:

We have several menu entries that have several sub-menu items, that in turn may have many sub-sub-menu items, etc...The sub-items under the expandable menu entry "1", are indented three characters over from where the level "1" item is displayed. The second "level 1" item in our menu has many sub-items that are not being indented over from where this level 1 items is displayed.

So, for example, using the below as our TREE_ITEMS data (abbreviated):

["Browse by Season", null,null,
["<strong>Everyday</strong>","/main/shop.do, null,
["New","/main/shop.do?action=init&itemID=26&itemType=CATEGORY", null,null],
["Premium Chocolates","/main/shop.do, null,null] ],

["<strong>Spring/Summer</strong>","/main/shop.do, null,
["New","/main/shop.do, null,null],
["Premium Chocolates","/main/shop.do, null,null] ] ],

Displays like this:

Browse by Season
-Everyday
New
Premium Chocolates
-Spring/Summer
New
Premium Chocolates

Our issue is with the second "set" of sub-items under, in this case, the 'Spring/Summer' entry. Why it's sub-items don't indent the same number of characters over to the right as the first menu item's, in this case 'Everyday', sub-items is the problem. This occurs regardless of how the data is arranged--meaning, I can switch the position of 'Everyday' and it's sub-items with 'Spring/Summer' and it's sub-items and it does the same thing.

Any ideas?


tselland - 3/23/2007 at 03:29 PM

Evidently multiple spaces are stripped out when text is posted....So, I'll use underbars to stand in as spaces...

So, in my above post, the "displays as" section should look like, where the "-" denotes an expandable menu item:

Browse by Season
__-Everyday
______New
______Premium Chocolates
__-Spring/Summer
___New
___Premium Chocolates


tigra - 3/23/2007 at 06:05 PM

In your items structure some links don't have the closing quotation.
["New","/main/shop.do <-- here for example


tselland - 3/23/2007 at 07:23 PM

My bad....they should...I edited out the superfluous details but evidently edited out a bit too much.


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