Uploaded image for project: 'Magnolia Site Module'
  1. Magnolia Site Module
  2. MGNLSITE-34 Harmonize SiteAwareTemplateAvailability
  3. MGNLSITE-41

ConfiguredSiteTemplateAvailability should deny availability of non-visible templates

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.0.5
    • None
    • None
    • None
    • Saigon 32

      TemplateDefinition has a property visible that hides the template in Admincentral. The default template availability strategy checks this flag and excludes templates that have it set.

      In DefaultTemplateAvailability:

              // Templates with no visible property, or visible=false are not available.
              if (templateDefinition.getVisible() != null && !templateDefinition.getVisible()) {
                  return false;
              }
      

      This is probably not an issue since users can just not list the template in the site definition templates availability settings. But for consistency non-visible templates should be hidden even if listed in the site config.

            ngoc.nguyenthanh Ngoc Nguyenthanh
            tmattsson Tobias Mattsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2d
                2d
                Remaining:
                Time Spent - 0.25d Remaining Estimate - 1.75d
                1.75d
                Logged:
                Time Spent - 0.25d Remaining Estimate - 1.75d
                0.25d