Announcement
Collapse
No announcement yet.
Fragments and Page Builder Visual Editor UI
Collapse
X
-
delcorsets I have been working on a mega menu component myself. If you reach out to dev support I can help you wrap your head around the best way to create this component.
-
Trying to create a customized Mega Menu nav bar flex component to replace the cumbersome hardcoded menu currently in use.
I created a custom fragment db-mega-menu (copied from global_header, has flex and sequence items assigned, template contains <mvt:item name="sequence" />). I'm calling it with <mvt:fragment code="db-mega-menu" /> from the Navigation Bar settings template (User Interface > Settings > Navigation Bar). The fragment renders nothing - however, hardcoded text I added in the template to test does output. I'm testing further this morningLast edited by delcorsets; 04-07-26, 05:14 AM.
Leave a comment:
-
delcorsets Yes fragments can be used with Flex Components, in fact they were partially created just for that use case. The native MMX components are using fragments and have the ability to add fragments.
What exactly are you trying to create?
Leave a comment:
-
Fragments and Page Builder Visual Editor UI
Can the Page Builder visual editor be used to work with Fragments? I'm using the Flex Component Skill for assistance and wanted to confirm it's finding before following it down a rabbit hole:
**Page Fragments and Custom Flex Components:**
- Custom Basic architecture flex components CANNOT be fully used in Miva Page Builder Fragments
- Fragments require components to implement `ComponentModule_Initialize_Fragment` — a module-level API only available to Miva-built (managed) components
- The Page Builder settings UI is not accessible for custom components assigned to fragments
- For global template injection (Navigation Bar, Global Header, etc.), use a regular blank Page Builder page instead of a Fragment
- A regular page can be called inline from any template using `<mvt:item name="{page-code}" param="instance" />`
- The Fragment `<mvt:fragment code="xxx" />` syntax is only reliable for Miva-native componentsTags: None
Leave a comment: