|
|
Sergey Kornilov admin 7/10/2026 |
|
The menu is not a file, it is much more than that. May be you can explain what exactly you need to implement and we can suggest a solution? |
|
|
S
|
Svic srl author 7/13/2026 |
|
Well, |
|
|
C
|
Chris Whitehead 7/13/2026 |
|
You could use the modify menu function https://xlinesoft.com/phprunner/docs/menu_modify.htm $item = $menu->addPageLink( "New Cars", "cars", "list" );Then use the permissions. $rights = Security::getPermissions("Cars");You could then include the PHP in the modify menu event, then run a loop in side it. Or do you need a list of all the tables in the project so you can loop through those and build the menu dynamically? |
|
|
S
|
Svic srl author 7/14/2026 |
|
Chris Whitehead, <div class="sidebar"> <i class="fa-solid fa-layer-group"></i> TaskFlow Pro<a href="home.php"><i class="fa-solid fa-chart-line"></i> Dashboard</a>
Because one team will develop the various sensor and video management pages, while I'll manage the monitoring and data acquisition with PHPrunner. I don't want to open the project and recompile the menu every time the sensor team wants to add a new page. They'll just add a new link to the PHP file and it'll be ready to go. |
|
|
|
Sergey Kornilov admin 7/14/2026 |
|
Create a file named mymenu.php and add a redirect to this page in Welcome page: BeforeProcess event. |
|
|
C
|
Chris Whitehead 7/22/2026 |
|
@Svic srl You don't need to recompile each time, you can just include a php script in the modify menu event, this would simply be an array which contains the url, then your team just adds an item to the array in the script which is getting included. $menu_items = [
Another option could be to create another dummy item then copy it, this would have the icon and you just replace it using JS This might help with the icon as there doesn't appear to be any phprunner documented functions to add/replace icons, it is for a previous version but still works. Here's some code I use to add the badges/icons which is in MenuItem:Modify, this still works but it's deprecated so I don't know how long this would still work for. |
|