+ Start a Discussion
bluestonebluestone 

How to add an aura component to Contact page?

I have created an Aura component which is a table.
I wish to visualize it in the page of each contact, for example in the Details tab.
How can I do that?

Thanks
Best Answer chosen by bluestone
GauravendraGauravendra
+Anant

Just open the contact detail page in lightning, click the setup gear at top and select edit page.
You can view your custom lightning component in the left section as you scrolled down (if you have implemented interfaces as Ravi suggested above).
https://help.salesforce.com/articleView?id=lightning_app_builder_customize_lex_pages.htm&type=5 (https://help.salesforce.com/articleView?id=lightning_app_builder_customize_lex_pages.htm&type=5)
Hope this helps!

All Answers

bluestonebluestone
PS
I suppose I have to add the component to the layout of the Contact page, but how can I do that?
Ravi Dutt SharmaRavi Dutt Sharma
You need to implement flexipage:availableForAllPageTypes interface
 
<aura:component description="Sample desc" 
    implements="flexipage:availableForRecordHome, forceCommunity:availableForAllPageTypes"
  controller="SampleCtrl">

 
Anant KamatAnant Kamat
You need to add your custom component in the Lightning Record Page for the Contact object in the Details Section.
bluestonebluestone

@Anant Kamat
How can I do that?

Or can you suggest me a guide to do that? 

GauravendraGauravendra
+Anant

Just open the contact detail page in lightning, click the setup gear at top and select edit page.
You can view your custom lightning component in the left section as you scrolled down (if you have implemented interfaces as Ravi suggested above).
https://help.salesforce.com/articleView?id=lightning_app_builder_customize_lex_pages.htm&type=5 (https://help.salesforce.com/articleView?id=lightning_app_builder_customize_lex_pages.htm&type=5)
Hope this helps!
This was selected as the best answer
Anant KamatAnant Kamat
Basically you need to switch to Lightning Experience and then navigate to the object via Setup. In the Object Manager Tab, select the Contact object and then click on Lightning Record Pages. Incase there isn't any, go ahead and create one. Once done, you will be taken to Lightning App Builder where you can customize the Lightning Record Page based on your requirements. As Gauravendra suggested the link, please go through it for detailed explanation regarding the same.
bluestonebluestone
Thanks to everybody!
I solved.