[SOLVED] Use ModifyMenu to add record count for 1 menuitem |
10/27/2024 6:33:11 PM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I know we're supposed to use ModifyMenu now but not quite understanding how to add a record count to one menu item. The ID is 24 $rs=DB::Query("select count(1) as c FROM vw_checkout where IsMonitor = 1"]); I'm probably doing something stupid, but can't quite figure it out. Thanks |
|
![]() |
Davor GeciDevClub member 10/29/2024 |
Hello Alan, try with this code in ModifyMenu event: if( $menu->name() == "main" ) { Hope it helps, |
A
|
asawyer13 authorDevClub member 10/29/2024 |
Worked perfectly. Adding that to my arsenal of PHPR knowledge. Thankis |