View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - add a submenu in the left menu - ProjeQtOr
 
 

add a submenu in the left menu

More
01 Nov 2012 17:02 #1 by yassine
I am trying to develop a new module I want to add a submenu in the left menu I try to add a field in the table MENU but it's not included when creating dynamic menu
Attachments:

Please Log in or Create an account to join the conversation.

More
01 Nov 2012 17:54 #2 by babynus
you also need to add habilitations for this new screen.
this can be done through access to screen menu

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
01 Nov 2012 18:00 #3 by yassine
i can't understand your advice :S

Please Log in or Create an account to join the conversation.

More
01 Nov 2012 20:16 #4 by babynus
When you try to add a new menu, to display a new screen, you add item in table Menu.
You also need to add lines in table habilitation for each profile allowed to access the new screen. Without this, new lenu does not appear.
You can update table habilitation directly, or use the screen "Pramaeters" => "Access rights" => "access to forms". You should have a new line for your new screen. Just check the profiles allowed to access the screen and save...
Then disconned/reconnect to see changes.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: yassine, Berlo56

Please Log in or Create an account to join the conversation.

More
05 Nov 2012 10:51 #5 by yassine
thanks for your answer, i want to know where's the relation between the menu and the content (on click : appel de la page qui contient le contenu associé)
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Nov 2012 12:11 #6 by babynus
Hi,

It will depend on menu.type value. See code in /view/menuTree.php, line 165 :
if (item.type=='object') {
        loadMenuBarObject(item.id,item.name);
    } else if (item.type=='item') {
        loadMenuBarItem(item.id, item.name);
    } else if (item.type=='class') {
      cleanContent("detailDiv");
	    formChangeInProgress=false;
	    loadContent("objectMain.php?objectClass="+item.objectClass,"centerDiv"); 
    } else if (item.type=='menu') {
       // Nothing
    } else {
	    showInfo(i18n("messageSelectedNotAvailable", new Array(item.name)));
	  }
For type "object", access is generic.
For type "item", the javascript function "loadMenuBarItem" must be completed in /view/js/projectorDialog.js

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: yassine

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.