Announcement

Collapse
No announcement yet.

Fragments and Page Builder Visual Editor UI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 components
    Psydde Delicious
    Delicious Boutique & Corseterie
    Philadelphia, PA
    www.DeliciousBoutique.com
    www.DeliciousCorsets.com

    #2
    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?
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      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 morning
      Last edited by delcorsets; Today, 05:14 AM.
      Psydde Delicious
      Delicious Boutique & Corseterie
      Philadelphia, PA
      www.DeliciousBoutique.com
      www.DeliciousCorsets.com

      Comment


        #4
        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.
        Nicholas Adkins
        Technical Training Specialist / Miva, Inc.
        [email protected]
        https://www.miva.com/mivalearn

        Comment

        Working...
        X