【问题标题】:view @{title()} how to disable appending config.name to the title?查看 @{title()} 如何禁用将 config.name 附加到标题?
【发布时间】:2017-03-05 04:04:43
【问题描述】:

我看到框架正在将 '-' + config.name 添加到视图中的传递标题。如何禁用它? 示例:

@{title('@(Categories list)'}

呈现给:

<title>Categories list - [config.name variable]</title>

我希望它渲染到

<title>Categories list</title>

【问题讨论】:

标签: total.js


【解决方案1】:

您可以通过allow-custom-titles : false in config 禁用它: https://docs.totaljs.com/latest/en.html#api~FrameworkConfiguration~allow-custom-titles

【讨论】:

  • 没问题。顺便说一句:我祖父的名字是罗森伯格 :-)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-02
  • 1970-01-01
  • 2020-02-17
  • 2014-10-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多