cmsfn.link
模板功能在其输出中包含cmsfn.link
扩展名。例如:
.html
如何删除${cmsfn.link(exampleNode)} → https://examplesite.com/example-page.html
扩展名?
[不幸的是,这不能通过Magnolia配置和.html
完成。因此,您有多个FreeMarker内置选项:
they have no plans to create this functionality anytime soon
来源: ${cmsfn.link(exampleNode)?replace(".html", "")}
https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_replace
来源: ${cmsfn.link(exampleNode)?split(".html")[0]}
https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_split
来源: ${cmsfn.link(exampleNode)?remove_ending(".html")}