Supply layout for core Entity in extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    Supply layout for core Entity in extension

    hi I created an extension for a project entity we use daily. It has a relationship panel for it's linkMultiple with Contacts. I would like to supply a specific layout for these Contacts. It's called listForProject.json

    How do I reference this (including the correct namespace) in files/<....>/entityDefs/Project.json ?

    I've tried the following:

    PHP Code:
       relationshipPanels:{
          contacts:{
             "layout":"<myExtensionNamespace>listForProject"
          }
       }, 
    
    but this cause a 404 for /api/v1/Contact/layout/<myExtensionNamespace>:listForProject
  • yuri
    Member
    • Mar 2014
    • 8478

    #2
    Hi

    You can't use namespaces. Just specify listForProject. Put the json file to custom.
    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...