Announcement

Collapse
No announcement yet.

New module development

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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.

    Comment

    Working...
    X