My Community Site has two navigations. The "Default Navigation" which is used in the header, and also a "Footer" navigation used in the footer component. Both of them are custom, and inside of a "Build your Own" template.
I've used this trailhead module to create my own custom Lightning component, and have managed to get it working, but It's showing the "Default Navigation", and not the "Footer" as expected.
The component, FooterNavigation
is inside of another component, the Footer
component.
FooterNavigation.cmp
<aura:component extends="forceCommunity:navigationMenuBase">
<div class="footer__navigation slds-m-vertical_medium">
<aura:iteration items="{!v.menuItems}" var="item">
<p>{!item.label}</p>
</aura:iteration>
</div>
</aura:component>
Footer.cmp
<aura:component>
<footer class="slds-p-around_large">
<div class="slds-container_x-large slds-container_center">
<div class="slds-grid slds-wrap slds-gutters slds-grid_align-spread">
<div class="slds-col slds-medium-order_2 slds-small-size_1-of-1 slds-medium-size_1-of-4 slds-clearfix">
<img src="{!$Resource.footerLogo}" class="slds-float_left" alt="Footer Logo" />
</div>
<div class="slds-col slds-medium-order_1 slds-small-size_1-of-1 slds-medium-size_3-of-4">
<c.FooterNavigation/>
</div>
</div>
</div>
</footer>
</aura:component>
The Footer
component is called from a theme component, although I have tried adding the forceCommunity:themeLayout
interface to both and I'd still get the same result.
My problem is that it is showing the "Default Navigation" and not the "Footer" navigation, is there a way that I can define it in the code?
I've tried looking around online on or off for several hours now and I can't find anything that defines it. So I have a feeling it might not be possible. But with the release of Winter 20, you can have multiple navigations, and define which one to use in the properties of the component - however, the page doesn't explain how a developer could integrate it.
Any help would be really appreciated and it would be a massive help.