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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: