Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-1162

DOC: Component autogeneration and inheritance for SPA rendering

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None

      Description

      This is sample of rest endpoint:

      $type: jcrPagesDeliveryEndpoint_v2

       

      This is sample of template for autogeneration component: https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/pull-requests/34/diff#magnolia/light-modules/react-minimal-lm/templates/pages/basic-autogeneration.yaml

      This is sample of template for inheritance component: https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/pull-requests/34/diff#magnolia/light-modules/react-minimal-lm/templates/pages/contact-inheritance.yaml

       

      Require to run "@magnolia/react-editor": "1.3.1" at least for component inheritance feature. Due to a fix bug of https://jira.magnolia-cms.com/browse/MGNLFE-333

      Note:

      • component autogeneration currently just support for #read_node and #get_children API only
        • Create a real component node in JCR when open editing page or call rest API directly
      • component inheritance currently just support for #read_node only.
        • Does not create real inheritance component node in JCR. So only when calling rest API or open editing page, user can see inheritance component nodes
        • Sample json response: . Name of inheritance component will be decorated. Like above img. Real name is "headline". But in json response, our rest endpoint will generate a unique name for inheritance component. User can use @path or @id to access the real node

       

        Acceptance criteria

              mdrapela Martin Drápela
              oanh.thai Oanh Thai Hoang
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoR