[BLOSSOM-92] Make TemplateDefinitionBuilder.buildTemplateDefinition more generic Created: 03/Jun/12  Updated: 20/Nov/15  Resolved: 20/Nov/15

Status: Closed
Project: Blossom
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Thomas Kratz Assignee: Tobias Mattsson
Resolution: Obsolete 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)
Date of First Response:

 Description   

Hi, I am quite new to magnolia, but I hope I'll find some assistance here.
What I am trying to do is use blossom templates with STK, which should be not so complicated afaics. The problem I have today is that buildTemplateDefintion in TemplateDefintionBuilder returns a BlossomTemplateDefintion. My first idea was to subclass a BlossomTemplateDefintion clone from STKPage which provides the functionality neede for STK Templates. And then I would provide I custom "BlossomSTKRenederer" I would introduce an annotation in my extension, so that my custom builder would return an STK Enabled blossom compatible Template Defintion. cleaner would be if we could have some kind of interface here, but I think my understanding is not deep enough here. Do you think it's possible to change the return type of the method without much hassle?

Any help will be appreciated.

Look here, this was my idea which does not compile because my template defintion does not inherit from BlossomTemplateDefinition.

https://github.com/eiswind/magnolia-blossom-stk-integration/blob/master/webapp/module/src/main/java/de/eiswind/magnolia/blossom/builder/BlossomSTKTemplateDefinitionBuilder.java



 Comments   
Comment by Thomas Kratz [ 19/Apr/15 ]

Feel free to close this one, it's not relevant anymore.

Comment by Tobias Mattsson [ 20/Nov/15 ]

STK has been superseded by the Minimal template kit. Much functionality previously only available in STK is now provided by separate modules, such as the site module. This functionality is now easier to use in Blossom projects, see for instance https://documentation.magnolia-cms.com/display/DOCS/Blossom+module#Blossommodule-Sitesandthetemplateprototype.

I'm closing the ticket as obsolete.

Generated at Sun Feb 11 23:30:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.