EspoCRM and New Views

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9617

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

    Comment

    • blueprint
      Active Community Member
      • Jan 2019
      • 223

      #3
      Perfect, thank you.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9617

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

        Comment

        Working...