hi @SudarshanV1,
If your “submenu” and “nested submenu” are more than just links (e.g., promo tiles, images, teasers, CTA buttons, personalization), you can split the header into Experience Fragments (XFs), then assemble them in a single header/menu component at render time.
XF can be referenced from pages, so they’re a good fit for reusable header/subheader blocks. XFs can also contain other EF, which maps nicely to a “tab → submenu → nested submenu” structure without forcing everything into a single dialog.
Here my authoring model suggestion:
-
Create one XF per top-level tab (or per “mega menu” panel), authored as real components (teasers, images, link lists, etc.) instead of nested multifields
-
If you need variations (per locale/brand/audience), use XF variations for each tab/panel so authors manage it in one place
-
For simple link-only parts, you can still generate items from the content tree (Navigation component / site structure) and use XFs only for the rich panels
To assemble all parts server-side, you implement a Header/Menu component (HTL + Sling Model) that. leverages the logic of Core Component Experience Fragment (it simply renders an XF variation):
-
Reads a config mapping (e.g., “Tab label → XF path/variation”), and outputs the top-level tabs.
-
For each tab hover panel, includes the corresponding XF (or nested XF) so the submenu content is authored independently but rendered together in the header