Page 1 of 1

Integration of Menu from Multiple Project

Posted: Tue Sep 17, 2013 11:52 am
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.


Re: Integration of MENU from Multiple Project

Posted: Tue Sep 17, 2013 3:32 pm
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".


Re: Integration of Menu from Multiple Project

Posted: Tue Sep 17, 2013 11:45 pm
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


Re: Integration of Menu from Multiple Project

Posted: Wed Sep 18, 2013 9:10 am
by mobhar

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