Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-107

Areas without @TabFactory methods are not displayed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • 2.0.1
    • None
    • None

    Description

      This area is not displayed:

          @Controller
          @Area("main")
          @AvailableComponentClasses({TextComponent.class})
          public static class MainArea {
      
              @RequestMapping("/mainTemplate/main")
              public String render() {
                  return "areas/mainArea.ftl";
              }
          }
      

      Only by adding a @TabFactory method is it shown:

          @Controller
          @Area("main")
          @AvailableComponentClasses({TextComponent.class})
          public static class MainArea {
      
              @TabFactory("Content")
              public void contentTab(TabBuilder tab) {
              }
      
              @RequestMapping("/mainTemplate/main")
              public String render() {
                  return "areas/mainArea.ftl";
              }
          }
      

      Either the area is not added to the template definition at export time or it isn't rendered by Magnolia.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD