Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-1185

TemplateAvailability is restricted to existing nodes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Neutral
    • 2.5
    • None
    • None
    • None

    Description

      The available templates are determined by the parents template category, so it should be easy to check for available child templates for a yet not created page.
      The only thing that is preventing this is in #isAvailable:

      if(node.getDepth() == 1)

      { return category.equals(TemplateCategory.HOME) || category.equals(TemplateCategory.FUNCTIONAL); }

      Extending the interfaces would end up in a huge code duplication down to that method.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ejervidalo Espen Jervidalo
                ejervidalo Espen Jervidalo
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: