EspoCRM and New Views

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    EspoCRM and New Views

    I haven't tried this but does EspoCRM support views with completely different names (aside from create, edit, details, list, list-item, kanban)?

    For example, could I have a new view called tree-view or block-diagram which would give me a totally different view of my data (obviously, via a custom impemetation)?

    Or are there a few restricted "hard-coded" view types?
  • yuri
    Member
    • Mar 2014
    • 8471

    #2
    Only for a specific entity type .

    You can create a custom controller action (frontend controller) for a specific controller (controller name usually is the same as entity type name). This is needed for an access by url like #MyEntityType/blockDiagram/id, where blockDiagram is an action name of MyEntityType controller.

    That controller will render your custom view.
    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

    • blueprint
      Active Community Member
      • Jan 2019
      • 223

      #3
      Perfect, thank you.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8471

        #4
        You need to define a custom route in metadata: https://github.com/espocrm/espocrm/b...rc/app.js#L285

        Router: https://github.com/espocrm/espocrm/b.../src/router.js

        Also need to define a new custom controller in clientDefs. That controller will extend existing one.
        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...