Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By jriveram
#3922
Hello everybody!!!!

i need to make a new menu item in processmaker:
USERS --- CASES ---PROCESESS --- DASHBOARD --- ADMIN --- NEW ITEM,

where i need to modify the code for make the new item???
By pmUser2000
#3982
change the file <pm dir>/engine/menus/processmaker.php

to add a new option you should do the following:


add the option with :
Code: Select all
$G_TMP_MENU->AddIdRawOption('YOUR_OPTION_ID',            relative_url );
and then add the label for you option in this array, if you want you can write the label directly or use the LoadTranslation function for multilanguage labels.
Code: Select all
$G_TMP_MENU->Labels = array(
  G::LoadTranslation('ID_USERS'),
  G::LoadTranslation('ID_CASES'),
  G::LoadTranslation('ID_APPLICATIONS'),
  G::LoadTranslation('ID_DASHBOARD'),
  G::LoadTranslation('ID_SETUP'),
  'My Label Option'
);
and if you want to hide the option you can use the DisableOptionId
Code: Select all
if (  any_expresion_to_define_permission )
{
  $G_TMP_MENU->DisableOptionId('YOUR_OPTION_ID' );
}
By jriveram
#3991
Hello!!! thanks for your response!!!!!

i´ve another cuestion about this problem.. if a i need to call a popup with the new option in the menu...
which one is the code for this URL???

i know that i nedd to put a javascript code with the function for put the popup.. but how i call the function????

Javier

Temu New user DIscount code Using Temu's DIscount […]

By using the Temu coupon code [acu600079], you can[…]

Yes, the Temu Coupon Code "aci384098" or[…]

Yes, the Temu Coupon Code "aci384098" do[…]