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

Add support for $type to enableAllWithRenderType

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Normal
    • None
    • None
    • None
    • None

    Description

      https://demo.magnolia-cms.com/.magnolia/admincentral#app:site:browser;/travel/templates/availability/enableAllWithRenderType:null:

      The `enableAllWithRenderType` expects the `renderType` prop to be present in page definition.

      We can now omit using `renderType` by using the `$type`, which is very useful for headless projects cause it also allows us to omit the `class` prop.

      `$type` does set implicitly the `renderType`, but the `enableAllWithRenderType` rule does not support it.

      Could we improve the `enableAllWithRenderType` feature to take into account the what `$type` sets?

      Checklists

        Acceptance criteria

        Attachments

          1.
          Implementation Sub-task To Do Unassigned
          2.
          Review Sub-task To Do Unassigned
          3.
          Pre-Integration QA Sub-task To Do Unassigned
          4.
          QA Sub-task To Do Unassigned

          Activity

            People

              Unassigned Unassigned
              bstaryga Bartosz Staryga
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD