This topic is locked

How to change Menu Links via Events

3/20/2009 6:12:20 AM
PHPRunner General questions
L
Lisa2006 author

Hi Forum,
Based on V5.0
I have 3 tables with the following menu links as follows:
Menu1

Menu2

Menu3
On Menu2 I have a master-detail relationship with Menu4.

When I click on Menu2 it highlight Menu2 in light blue and displays the page with the Menu4 master-detail link.

When i click the master-detail Menu4 link the Menu2 link is no longer highlighted.
My question is:

How can make the Menu2 link hightlighted whilst being in the Menu4 page via Events and not Visual Editor.
I know that in Visual Editor i can simply replace "tablelinkssearch" for "highlight-tablesearch" as code below:
{$menu2_tablelink_attrs}>Menu2</A> </SPAN></DIV>{END menu2_tablelink}
Thank you in advance
Lisa

J
Jane 3/20/2009

Hi,
use List page: Before display event for this purpose.

Here is a sample:

$xt->assign("Menu2_tablelink_attrs","href=\"Menu2_list.php\" class=tablelinkssearch ");

L
Lisa2006 author 3/20/2009

Hi Jane,
Slight amendment to the code as follows, but works 100%
$xt->assign("Menu2_tablelink_attrs","href=\"Menu2_list.php\"class=highlight-tablesearch");
Thank you for your help
Lisa