Site Module 1.3.1致STK兼容失效,Magnolia升级模板无法显示
Magnolia 6.1.6升级后STK模板失效问题求助
我正在将Magnolia项目从5.7版本迁移至6.2版本,因迁移至MTK的成本过高,计划继续保留旧版STK模板。但从Magnolia 6.1.5升级到6.1.6后,模板完全无法显示。
排查后发现,Site Module从1.2.4版本更新到1.3.1版本时,移除了部分与主题相关的遗留方法,这一变更导致STK无法正常工作——STK的STKTemplatingFunctions.java中用到了这些被移除的方法:
// TODO dlipp/had: is that a good place to keep that code - you might have // to access it from non-template related code. Maybe we shouldn't // completely drop STKUtil but // keep it for common stuff. public Theme theme(Site site) { final String theme = site.getTheme().getName(); return StringUtils.isBlank(theme) ? new ThemeImpl(new STKImagingSupport()) : (Theme) moduleProvider.get().getTheme(theme); } public info.magnolia.module.site.theme.Theme theme(info.magnolia.module.site.Site site) { final String theme = site.getTheme().getName(); return StringUtils.isBlank(theme) ? new ConfiguredTheme(null) : moduleProvider.get().getTheme(theme); }
核心问题是moduleProvider.get().getTheme(theme)方法已被移除。我在官方文档中找不到对应的解决方案,也未看到任何说明指出STK在部分6.X版本中无法使用。此外,成像模块也受到了此次变更的影响。
请问有没有人遇到过这个问题?是否有可行的解决办法?
内容的提问来源于stack exchange,提问作者Yenyen
相关产品推荐
相关产品推荐

