Old 06-02-2008, 01:08 PM   #1 (permalink)
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default Open menu to pre-selected level

Hello all, congratulations for your excellent work.
I have purchased the XML Multilevel Sliding menu from flashden.net and I'm using it in one of my current projects.

I would like to know if ot would be possible to have the menu load directly to a specific sub-level when the page loads. For example, i have 3 main categories as my first level and each of them has 10 more sub categories and under them i display my products. when i click on a product link, the product page is loaded along with menu but the menu is displaying the 3 main (root) categories, meaning that the user has to open all the sub-menus again to fin the specific category he was at before.
  • Category 1
    • Sub-Category 1
      • Product 1
      • Product 2
      • Product 3
    • Sub-Category 2
      • Product 4
      • Product 5
      • Product 6 ---> product.php?cat=1?subcat=2&pid=6
    • Sub-Category 3
      • Product 7
      • Product 8

in this example, i need the menu to open directly to Sub-Category 2.
Any suggestions would be helpful and welcome. Thanks.
bikey77 is offline   Reply With Quote
Old 06-02-2008, 03:03 PM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 2,260
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hi,
Thank you for purchasing. Unfortunately such feature is not available. It could be implemented with a tree search algorithm (since xml files are represented in flash by a tree structure). I will give it a try and if I get to a solution I'm going to contact you.
Adrian is offline   Reply With Quote
Old 09-30-2008, 11:03 PM   #3 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default

Hello.

Great menu - was wondering the same as the original post - did you find time to give it a try and work up a solution I could use?

Thanks.
AndyT is offline   Reply With Quote
Old 10-05-2008, 05:52 AM   #4 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 5
Default

Hello,

I think there is a way because if you find this line

_global.gRoot = this.firstChild; //(you can find it inside Actions.as)

you could change it to:

if(yourvariable=="whatever"){
_global.gRoot = this.firstChild.childNodes[0];
} else{_global.gRoot = this.firstChild;}

Thats works fine for me and the menu will open in the first submenu.
The only problem I still have, and hopefully someone found the answer for was that if it opens up in a submenu for any reason its not showing the "back to root"-button on top anymore. So in this state there would be no way to go back to HOME or the other main menus which is not good.
Did anyone found a solution for that ?

christian
demoncleaner is offline   Reply With Quote
Old 11-13-2008, 08:17 PM   #5 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default

Anyone ever figure this last bit out... to get the "Back to Root" to appear if you have the menu load on a submenu group as bikey77 mentions how to do??
cardiac7 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:55 PM.