MX Tree Menu Forum :: Need of second URL parameter

This thread was displayed: 178 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Kari Lehtonen
02-11-2007 18:13:46 GMT +2

Hi!
It would be much appreciated if someone could help me with this.
I am trying to restrict the amount of menu items to be read from database to populate MX Tree Menu. The menu gets quite slow on my Win2000/IE 6 if all the sub items of every top level menu item is present (Firefox/Win2000 and IE6/IE7/WinXP is much better)

If I could get MX Tree Menu to send two URL parameters every time it is klicked, it would solve my problem.

MX Tree Menu sends now id=id_dir  and its fine, but I need it to send section=section_dir as well!
How do I make MX Tree Menu to read an extra parameter from the same recordset?
I have Dreamweaver 8 and here is how section_dir looks when pulled out and positioned between body tags:  <?php echo $row_rsDirectory['section_dir']; ?>

My recordset includes: SELECT id_dir, iddir_dir, name_dir, section_dir ...etc.

MX Tree Menu does now one URL parameter "id_dir" :
//URL Type: Static
  $TreeMenu1->setLink("page.php?id=");
  $TreeMenu1->setURLParameter("id_dir");
  $TreeMenu1->setTarget("_self");

but I need two URL parameters:
//URL Type: Static
  $TreeMenu1->setLink("page.php?section=xxx&id=");
  $TreeMenu1->setURLParameter("id_dir");
  $TreeMenu1->setTarget("_self");

I can replace "xxx" with number and it works great but I need it to send different number each time, according to the top level menu item wich is present in my recordset all the time.

Any ideas? I dont know PHP or MySQL but  DW takes me long way :-)

Yours, Kari Lehtonen, Finland

Back | Reply | Quote | Top
Kari Lehtonen
02-11-2007 21:17:54 GMT +2

my version is 1.7.7

Could newer version still be available?
I have build quite lot around MX Tree Menu and I´m not yet ready to abandon it :-). It works fine, only disappoinment is the slowness. I have 88 menu items and will have more.

still same Kari Lehtonen

Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
02-12-2007 10:22:05 GMT +2

Hello,

You cannot send multiple parameters, as MX Tree Menu can only send one. Also, since the MX Tree Menu has been discontinued, it is not available for download anymore.

Regards,
Razvan RACASANU

Reply | Quote | Top
Kari Lehtonen
02-13-2007 09:51:39 GMT +2

Thanks Razvan for a speedy answer.

I am trying another approach.

My toplevel menuitemID´s are < 99 (main sections)
and all the rest menuitem ID´s are > 99 (sub and subsub etc. pages)

1. A separate list of topmenuitems and TreeMenu on the  same page (sivu.php)

2. The list of topmenuitems sends:
sivu.php?id=<?php echo $row_rsPaaosiot['id_dir']; ?>

3. TreeMenu on the same page receives:
SELECT *
FROM ark_directory_dir
WHERE id_dir = colname OR id_dir > 99 
ORDER BY `order` ASC
colname numeric -1 $_GET['id']

Resulting nice MenuTree-menu of that mainsection in question.

But when this menu is clicked, id_dir is sent back to this same page, "No data to render" and warning:
"Warning: Invalid argument supplied for foreach() in /home/viljakka/public_html/php/includes/treemenus/MX_TreeMenu.inc.php on line 297
No data to render."

Well, normally recordset should hold:
   WHERE id_dir > 0
but mine is:
   WHERE id_dir = colname OR id_dir > 99 

If I only knew what kind of WHERE-clause would accept:
    id_dir´s from separate toplevel list where id_dir is allways < 99, and
    id_dir´s from resulting MenuTree where id_dir is allways  > 99

Any ideas?

Yours Kari

Reply | Quote | Top
Kari Lehtonen
02-13-2007 10:28:15 GMT +2

Well, bear with me :-)

Yet another approach.
("osio" means "section" and each menu item has this section info included)

1. The list of topmenuitems sends both id and osio(section):
sivu.php?id=<?php echo $row_rsPaaosiot['id_dir']; ?>&osio=<?php echo $row_rsPaaosiot['osio_dir']; ?>"

2. TreeMenu on the same page receives:
SELECT *
FROM ark_directory_dir
WHERE id_dir > 0  AND osio_dir = colname
ORDER BY `order` ASC
colname numeric -1 $_GET['osio']

resulting nice TreeMenu
- but its not opened, if submenuitems exists, can be opened manually though.
- and again, if clicked - "No data to render", well this time without warnigs.

Oh, I see, "osio" is missing when MenuTree is clicked... I should get it to be around somehow... maybe a variable or something.

But my first consern though is that TreeMenu doesnt open if submenuitems exists.
Any ideas on this?

Yours Kari

Reply | Quote | Top
Kari Lehtonen
02-13-2007 10:56:08 GMT +2

Live testing version of my development is at the address:
http://www.huomio.net/demo2/php/sivu.php?id=59
Right now it is in the shape of "I am trying another approach."

Another version is at the address:
http://viljakkalanpuolesta.net/php/sivu.php?id=56
There is more content.

Its a web based environment with quite an extensive editor for content and layout.

Yours Kari

Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
02-13-2007 14:36:15 GMT +2

Hello,

What you are trying to achieve can only be done through custom code, and I'm afraid that we cannot help you with this, as we do not offer commercial support anymore and our resources are limited.

I'm sorry that we cannot help you implement this, but maybe someone else reading this forum will be able to help you.

Regards,
Razvan RACASANU

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.