New module development

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jjoloka
    Junior Member
    • Jul 2015
    • 2

    New module development

    Good afternoon, colleagues. Today I started to deal with framwork Espo, download the example PM modules. I've got a couple of questions:
    1) How can automatics add new module name in menu tab?
    {
    "entity": true,
    "layouts": true,
    "tab": true,
    "acl": true,
    "module": "PM",
    "customizable": true,
    "stream": true,
    "importable": true
    }
    Don't work. Do not automatically appear in the menu.

    2) How can transfer customized layouts new or old modules on the new system (developer to -> productions)?
    - where saved settings from the layouts editor
    3) How can create in grid layouts calculated field?
    for ex.:
    a. in Module PM (ProjectTask Layouts) add field "time" in minutes - this good, done
    b. in Module PM (Project list view) in grid add sum count all "time" ProjectTask ?
    Last edited by jjoloka; 07-29-2015, 08:57 PM.
  • yuri
    Member
    • Mar 2014
    • 8455

    #2
    1) If you pack the module into an extension you can to write code in scripts/afterInstall.php to add new tab. Take our upgdate packages as an examples. You can us entity manager to create new entities. No need to do it manually.
    2) customized layouts are stored in custom folder
    3) you can create afterrSave hook for ProjectTask that will calculate sum and store it to Project entity.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...