We have a lightning community for partner registrations with users from multiple profile types. We need to change the contents of the Home page based on the current logged in user. Currently I'm doing it by a VF pages; [I have a VF page component on the main page of my Lightning community template]. This main VF page will redirect to another VF page based on the current user. This works fine. But I want to do the same with lightning components. So that I will have a main component and that will redirect/render to another component based on the current user. Can I do this? Please share any lead
You can use Audience Targeting.
There is step-by-step process in Salesforce Documentation: Manage Audience Targeting for Pages and Groups in Communities.
Always try and leverage Audience targeting first, however, if you need to further customize what is displayed in your page, you should create either a custom Theme Layout or community Layout. The difference being that the Cusotm Theme layout allows you to modify the whole community Theme (header, footer, body...) and the Layout only the Body of a page in a theme layout.