Harmonize SiteAwareTemplateAvailability (MGNLSITE-34)

[MGNLSITE-41] ConfiguredSiteTemplateAvailability should deny availability of non-visible templates Created: 25/Sep/15  Updated: 22/Feb/16  Resolved: 19/Feb/16

Status: Closed
Project: Magnolia Site Module
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.5

Type: Sub-task Priority: Trivial
Reporter: Tobias Mattsson Assignee: Ngoc Nguyenthanh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 1.75d
Time Spent: 0.25d
Original Estimate: 2d

Template:
Sprint: Saigon 32

 Description   

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.


Generated at Mon Feb 12 07:12:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.