This question already has an answer here:
I am working on a customer community using Customer Service (Napili) template. I have a requirement to override the new button of custom object so that some of the details can be auto-populated based on login user. I get to know standard new button cannot be overridden using lightning component the only way i could figure out is to disable the standard button and create a new Lightning component then add it to the custom content layout of record list view. Is there any better workaround to resolve this issue.