Create Custom Search and Profile Menu Components for Experience Builder
Create custom components to replace the Customer Service template’s standard Profile Header and Search & Post Publisher components in Experience Builder.
forceCommunity:profileMenuInterface
Add the forceCommunity:profileMenuInterface interface to an Aura component to allow it to be used as a custom profile menu component for the Customer Service site template. After you create a custom profile menu component, admins can select it in Experience Builder in Settings | Theme to replace the template’s standard Profile Header component.
Here’s the sample code for a simple profile menu component.
Add the forceCommunity:searchInterface interface to an Aura component to allow it to be used as a custom search component for the Customer Service site template. After you create a custom search component, admins can select it in Experience Builder in Settings | Theme to replace the template’s standard Search & Post Publisher component.
Here’s the sample code for a simple search component.
1({2 handleKeyUp: function(cmp, evt){3 var isEnterKey = evt.keyCode === 13;4 if(isEnterKey){5 var queryTerm = cmp.find('search-input').get('v.value');6 //do something with user input7}8}9})