MX Tree Menu Forum :: checkHighlight bug
This thread was displayed: 563 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/
Joris van Lier
10-05-2006 21:50:22 GMT +2
|
strpos(strtolower($url_page), strtolower($url))
does not work with static menu
however this does
strpos(strtolower($url), strtolower($url_page))
|
|
|
Joris van Lier
10-06-2006 14:20:53 GMT +2
|
this actually seems more like a bug in isURLRelativeToDoc
i'm using relative links ( ../../ )
suggest chaning
if ( strpos(strtolower($url), "/") === 0 || strpos(strtolower($url), "http://") !== false || strpos(strtolower($url), "https://") !== false ) {
to
if ( strpos(strtolower($url), "..") === 0 || strpos(strtolower($url), "/") === 0 || strpos(strtolower($url), "http://") !== false || strpos(strtolower($url), "https://") !== false ) {
|
|
|
Razvan Racasanu[InterAKT]
10-10-2006 15:18:19 GMT +2
|
Hello,
Thank you for reporting this and for also posting the modified code.
Can you post more details about the error and also the steps necessary to reproduce this?
Regards,
Razvan RACASANU
|
|
|
Joris van Lier
10-15-2006 17:58:13 GMT +2
|
having a menu ITEM
<li><a href="../admin/site/list.php?NxT_customer_id=2" title="Site List">Sites</a><ul>
the menu does not select the current tree node on page with url /admin/site/list.php?NxT_customer_id=2&KT_back=1
offcourse i could use absolute urls, however this makes it harder to deploy applications in subfolders (for versioning or on testing server)
in an ideal wold both urls and their query-string parameteres could be exploded into arrays, then a compare algorithm could check if each parameter from tree item url is present in current url, to accomodate for changed parameter order
|
|
|
Razvan Racasanu[InterAKT]
10-16-2006 11:53:30 GMT +2
|
Hello,
Thank you for this. We will analyse both the use case your provided and the code you posted earlier.
Regards,
Razvan RACASANU
|
|
|