Custom sub panel - v8

I want to create a custom sub panel in on a contact that fetches data externally.

I can easly see that to add fields is not a problem. but this one is fetching external data. Can I not load an angular component in a sub panel like I do with the sidebar?

To get a POC up all I want is to create a new tab called weather and get it to display data from an external API. Once I have that I can work on top of it.

This video may give you show ideas:

I already looked at this. I can understand how to add fields but I want to add a custom view/layout with a data list. The list will be be coming from an external api.

I know the sidebar I can do this fine bit it doesnt look like the subpanels support angular components unless I am wrong?

I have looked deeper into the code and can see there is such a thing as sugar_html. Is this the correct way to make these changes.

Can you map anything besides a panel to a tab?

Sorry, I do not know if it is possible in v8 or not. There must be way to do it.

1 Like

If I find out I will post it here.

Add a dynamically inserted Panel to your view (edit/detail/etc), add a single custom field (one single field so it fills the panel). The custom field should output whatever your custom content is.

This would be a mix of angular and PHP, with the panel/field injection done via Suite8 PHP code and the custom field type being Angular.

Mark

I decided to overide the route component so I have full flexibility. this has made it easier for my custom stuff.

1 Like