具有 Spring MVC 模板模块创建的 Magnolia CMS
Magnolia CMS with Spring MVC Template module creation
我在 manual. I added MainTemplate.java
, TextComponent.java
, contentArea.jsp
and mainTemplate.ftl
to the acme-module
skeleton project. Projects archive downloadable here 之后创建了 Magnolia + Spring MVC + maven 项目。当我在 Web 项目中使用 mvn jetty:run-war
运行码头容器时,我在控制台上注意到:
2016-05-26 11:19:18,850 INFO .magnolia.module.blossom.template.TemplateExporter: Registered templates [myModule:components/text,myModule:components/main]
但是在管理中UI组合中没有任何可用的模板,当我想创建一个新页面时。
将 MainTemplate 中的 myModule:components/main
更改为 myModule:pages/main
。
这就是 Magnolia 判断模板是页面还是组件的方式。现在您有两个组件模板,没有页面模板。
我在 manual. I added MainTemplate.java
, TextComponent.java
, contentArea.jsp
and mainTemplate.ftl
to the acme-module
skeleton project. Projects archive downloadable here 之后创建了 Magnolia + Spring MVC + maven 项目。当我在 Web 项目中使用 mvn jetty:run-war
运行码头容器时,我在控制台上注意到:
2016-05-26 11:19:18,850 INFO .magnolia.module.blossom.template.TemplateExporter: Registered templates [myModule:components/text,myModule:components/main]
但是在管理中UI组合中没有任何可用的模板,当我想创建一个新页面时。
将 MainTemplate 中的 myModule:components/main
更改为 myModule:pages/main
。
这就是 Magnolia 判断模板是页面还是组件的方式。现在您有两个组件模板,没有页面模板。