How can I add a dashlet to an entity detail page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devespo
    Junior Member
    • May 2017
    • 15

    How can I add a dashlet to an entity detail page?

    I need to display some custom data that would be hard to implement in espo, so I thought I could create a dashlet that shows an iframe with custom content, but it needs to go on account or contact detail view, and I need to use account/cpontact attribute to pass into iframe as a parameter. How can I display a dashlet, or custom chunk of iframe into entity detail view?
  • eymen.elkum
    Member
    • Aug 2019
    • 41

    #2
    u need something like custom sidebar view not dashlet

    Comment

    • Andorxor
      Member
      • May 2019
      • 65

      #3
      You could use afterRender of the view to put the iframe in.

      PHP Code:
      afterRender: function()
      {
      $('SelectorFortheElementAfterWhichyouWantToPutYourIFrame').after('<iframe src="yourUrl.com?ParameterName=' + this.model.get("AttributeName") +'"></iframe>');
      } 
      
      Last edited by Andorxor; 09-26-2019, 08:12 AM.

      Comment

      Working...