[MGNLSTK-1522] STKTemplatingFunctions.getSite() for Mag 5.4 will never return a Site Created: 06/Feb/16 Updated: 08/Feb/16 Resolved: 08/Feb/16 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | None |
| Affects Version/s: | 2.9.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Will Scheidegger | Assignee: | Unassigned |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| Description |
|
When you want to use STK templates (i.e. handled by the STKRenderer) in a Magnolia 5.4 MTE site these components will never get a site: On line 220 a info.magnolia.module.site.Site is successfully fetched |
| Comments |
| Comment by Richard Gange [ 06/Feb/16 ] |
|
I don't see this as a bug. It's never been our intention to support STK templates outside the confines of an STK site definition. You should either migrate the templates or change your site definition to be of the STK type. Since info.magnolia.module.templatingkit.sites.Site implements info.magnolia.module.site.Site you can simply add a class property to your site definition that points to info.magnolia.module.templatingkit.sites.Site and you should be good to go. |