4

I am in the process of building a custom navigation menu as a Lightning Web Component for my community.

I know that in Aura Components one could use forceCommunity:navigationMenuBase, which provides data about the community's navigation menu items.

How could one gather navigation menu data for the community the when writing an LWC?

The documentation at https://developer.salesforce.com/docs/component-library/bundle/forceCommunity:navigationMenuBase/documentation does not seem to indicate there is a direct equivalent for LWCs.

1 Answer 1

0

You can use @wire function to call an Apex method that returns list of menu items using this SOQL query SELECT Label, NavigationLinkSetId, Target FROM NavigationMenuItem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .