【发布时间】:2023-03-20 10:01:01
【问题描述】:
早安,
我正在努力了解 Hippo 和 HST 层的工作原理。
我已经学习了 Hello World 和 Go Green 教程,但我仍然难以掌握我在控制台中所做的事情。
这就是我想做的。
我有以下文件:
- base-layout.ftl
- base-footer.ftl
我的 base-layout.ftl 文件如下所示:
<!doctype html>
<#assign hst=JspTaglibs["http://www.hippoecm.org/jsp/hst/core"] >
<#assign fmt=JspTaglibs ["http://java.sun.com/jsp/jstl/fmt"] >
<html>
<head>
<title>Base Layout</title>
<meta charset="utf-8">
<@hst.headContributions categoryIncludes="htmlHead" xhtml=true/>
</head>
<body>
<section>
<@hst.include ref="main"/>
</section>
<section>
<footer>
<@hst.include ref="footer"/>
</footer>
</section>
<@hst.headContributions categoryIncludes="htmlBodyEnd" xhtml=true/>
</body>
</html>
我的 base-footer.ftl 看起来像这样:
<@hst.include ref="container"/>
<p>Footer Content</p>
- 如何设置基本布局以使用基本页脚
- 然后我怎样才能通过使用此 base-layout 的 cms 创建“页面/文档”以在此处填充 freemarker 代码
期待任何帮助
谢谢
【问题讨论】:
标签: hippocms