Why take time to create all definition menu (and definition tabs) on modules .

The actual menu management is hell ! 

 

De : dolibarr-dev-bounces+charles.fr=benke...@nongnu.org 
[mailto:dolibarr-dev-bounces+charles.fr=benke...@nongnu.org] De la part de 
Destailleur Laurent
Envoyé : dimanche 21 décembre 2014 02:07
À : Posts about Dolibarr ERP & CRM development and coding
Objet : Re: [Dolibarr-dev] Adding a submenu entry to projects

 

To have 2 entries, you should add 2 lines into descriptor.

However, for "project" and "my project" this is not possible, because the 
current code use the same "key" for leftmenu to define the entry "Project" and 
entry "My project".

We must first made a change to have a value for "leftmenu" that differs to have 
unique keys.

 

2014-12-05 14:49 GMT+01:00 Doursenaud, Raphaël <rdoursen...@gpcsolutions.fr>:

Yes eldy, the menu appears under "My projects" but I also want one under 
"Projects"!

 

2014-12-04 18:52 GMT+01:00 Destailleur Laurent <e...@destailleur.fr>:

This is not a bug.

I cut and paste your code into my module, and entry was correctly added into 
menu. Everyhting works correctly. Note: i just replaced 

 

'enabled' => '1',

'perms' => '1',

 

to be sure to not have permissions issued.

 

Note: you did

 

$this->menu[]

 

Check it is not overwritten by another entry making $this->menu[0]

 

 

2014-11-25 11:55 GMT+01:00 Doursenaud, Raphaël <rdoursen...@gpcsolutions.fr>:

Thanks Charles and Philippe for your answers!

 

Unfortunately changing the menu manager is not an option for my use case.

And for the record, the result is worse: the whole project main menu vanishes 
on module activation!

Sounds like a bug to me. I've opened one: https://doliforge.org/goto?key=bug 
<https://doliforge.org/goto?key=bug&val=1724&group_id=144> 
&val=1724&group_id=144

Feel free to chime in to report your own experiments.

 

Cheers,

 

2014-11-24 20:27 GMT+01:00 Philippe Berthet <bert...@systune.be>:

Think it's buggy with edly_menu only.

If you switch on configuration->Menus to 'auguria_menu', and reinstall your 
module, it should work. 

 

Regards,




Philippe Berthet

www.onelog.be

 

 

 

On Mon, Nov 24, 2014 at 6:11 PM, <charles...@benke.fr> wrote:

Hello raphael

As i remember i was confronted to the same problem for my projet V2 modules

Then I have not succeed 

Maybe they are no way for it

 

Bien cordialement,

Charles-François BENKE

http://www.benke.fr - 0637056117

 

De : dolibarr-dev-bounces+charles.fr=benke...@nongnu.org 
[mailto:dolibarr-dev-bounces+charles.fr 
<mailto:dolibarr-dev-bounces%2Bcharles.fr> =benke...@nongnu.org] De la part de 
Doursenaud, Raphaël
Envoyé : lundi 24 novembre 2014 15:51
À : Posts about Dolibarr ERP & CRM development and coding
Objet : [Dolibarr-dev] Adding a submenu entry to projects

 

Hi all,

 

I'm trying to declare a submenu to the projects menu.

So far I've only been able to add it to the "My projects", but I want it under 
"Projects".

 

Is this a bug or am I doing something stupid?

 

Here's the code I'm using in my module descriptor:

$this->menu[] = array(

     'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=projects',

     'type' => 'left',

     'titre' => 'MyMenuTitle',

     'mainmenu' => 'project',

     'leftmenu' => 'projects',

     'url' => '/mymodule/project/somepage.php',

     'langs' => 'mymodule@mymodule',

     'position' => '100',

     'enabled' => '$conf->mymodule->enabled && $conf->projet->enabled',

     'perms' => '$user->rights->projet->lire',

     'target' => '',

     'user' => '0', // Internal only

);

 

Thanks!

 

-- 

Raphaël Doursenaud

Directeur technique (CTO)

Expert certifié en déploiement Google Apps 
<https://gpcsolutions.fr/raphael-doursenaud-google-apps-certified-deployment-specialist>
 

+33 (0)5 35 53 97 13 <tel:%2B33%20%280%295%2035%2053%2097%2013>  - +33 (0)6 68 
48 20 10 <tel:%2B33%20%280%296%2068%2048%2020%2010> 

 

 <http://gpcsolutions.fr> Image supprimée par l'expéditeur.

http://gpcsolutions.fr

Technopole Hélioparc

2 avenue du Président Pierre Angot

64053 PAU CEDEX 9

SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921

 <http://wiki.dolibarr.org/index.php/Dolibarr_suppliers_France#GPC.solutions> 
Image supprimée par l'expéditeur.Image supprimée par l'expéditeur.


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

 


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev





 

-- 

Raphaël Doursenaud

Directeur technique (CTO)

Expert certifié en déploiement Google Apps 
<https://gpcsolutions.fr/raphael-doursenaud-google-apps-certified-deployment-specialist>
 

+33 (0)5 35 53 97 13 <tel:%2B33%20%280%295%2035%2053%2097%2013>  - +33 (0)6 68 
48 20 10 <tel:%2B33%20%280%296%2068%2048%2020%2010> 

 

 <http://gpcsolutions.fr> 

http://gpcsolutions.fr

Technopole Hélioparc

2 avenue du Président Pierre Angot

64053 PAU CEDEX 9

SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921

 <http://wiki.dolibarr.org/index.php/Dolibarr_suppliers_France#GPC.solutions>   
<https://gpcsolutions.fr/wp-content/images/gfwp.png> 


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev





 

-- 

Laurent Destailleur (alias Eldy)

------------------------------------------------------------------------------------

Social networks of my OpenSource projects:

Dolibarr Google+: https://plus.google.com/+DolibarrOrg/

Dolibarr Facebook: https://www.facebook.com/dolibarr

Dolibarr Twitter: http://www.twitter.com/dolibarr

AWStats Google+: https://plus.google.com/+AWStatsOrgPoject/

AWStats Facebook: https://www.facebook.com/awstats.org

AWStats Twitter: http://www.twitter.com/awstats_project

 


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev





 

-- 

Raphaël Doursenaud

Directeur technique (CTO)

Expert certifié en déploiement Google Apps 
<https://gpcsolutions.fr/raphael-doursenaud-google-apps-certified-deployment-specialist>
 

+33 (0)5 35 53 97 13 <tel:%2B33%20%280%295%2035%2053%2097%2013>  - +33 (0)6 68 
48 20 10 <tel:%2B33%20%280%296%2068%2048%2020%2010> 

 

 <http://gpcsolutions.fr> 

http://gpcsolutions.fr

Technopole Hélioparc

2 avenue du Président Pierre Angot

64053 PAU CEDEX 9

SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921

 <http://wiki.dolibarr.org/index.php/Dolibarr_suppliers_France#GPC.solutions>   
<https://gpcsolutions.fr/wp-content/images/gfwp.png> 


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev




 

-- 

Laurent Destailleur (alias Eldy)

------------------------------------------------------------------------------------

Social networks of my OpenSource projects:

Dolibarr Google+: https://plus.google.com/+DolibarrOrg/

Dolibarr Facebook: https://www.facebook.com/dolibarr

Dolibarr Twitter: http://www.twitter.com/dolibarr

AWStats Google+: https://plus.google.com/+AWStatsOrgPoject/

AWStats Facebook: https://www.facebook.com/awstats.org

AWStats Twitter: http://www.twitter.com/awstats_project

 

_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à