[MGNLSITE-18] SiteAwareTemplateAvailability should only check availability of site-templates, otherwise it should delegate to DefaultTemplateAvailability Created: 27/May/15  Updated: 02/Jun/15  Resolved: 29/May/15

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

Type: Improvement Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

By default, a ce-bundle comes with a site-definition which means the info.magnolia.module.site.templates.SiteAwareTemplateAvailability is the used as info.magnolia.rendering.template.TemplateAvailability.

When installing liberated-modules, one does not want to necessarily specifiy the availability of lets say a freemarker template in order to make it available.

SiteAwareTemplateAvailability should only check availability of site-templates (renderType=site), otherwise it should delegate to DefaultTemplateAvailability which is already available as member variable.


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