Integration of Menu from Multiple Project

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 432

Integration of Menu from Multiple Project

Post by Bishu »

Can anyone help me to integrated the menu from two project which can be used in both just like a single project.

I try editing the ew_menu.php
1) when I jump from one project to another the menu link path also change.
2) as the Menu use the language as $Language->MenuPhrase("308", "MenuText") - How can we use the Language of one project to another project.
3) Whenever we re-generate our project, we have to edit the ew_menu.php again and again. Is there any solution for it.


mobhar
User
Posts: 11905

Post by mobhar »

There is no such built-in function.

You should do it manually by entering the menu items one by one to your "Menu Text" under the "Multi-Language Property Editor".


Bishu
User
Posts: 432

Post by Bishu »

The first project path is first/
and the second project path is first/second

Now I edited the first project ew_menu.php as
$RootMenu->AddMenuItem(27, "Sales", "saleslist.php", 130, "", AllowListMenu('{ firstprojectID }Sales'), FALSE);
$RootMenu->AddMenuItem(28, "Purchase", "second/purchaselist.php", 130, "", AllowListMenu('{ secondprojectID }purchase'), FALSE);

The salelist.php is for the first project and
the purchaselist.php is for the second project

Now my first project menu is working find and I can link to the sales as well as to the purchase.
I copy the ew_menu.php from the first project to the second project.
And as soon as I login to the second project all the menu link are showing wrongly as
for sales first/second/saleslist.php but it should be first/saleslist.php
for purchase first/second/second/purchaselist.php but it should be first/second/purchaselist.php


mobhar
User
Posts: 11905

Post by mobhar »

You have to customize "ew_menu.php" file in the second project as well as you did in the first project.


Post Reply