0

Where are the templates for the default pages (Home, About Us, Contact Us) in Silverstripe 4 when freshly installed? The documentation does not say where.

4

1 回答 1

1

它们被称为Page.ssand Layout/Page.ss,并将位于您安装的任何主题中。如果您还没有任何主题,那么还没有任何主题。

如果您没有任何主题,它将使用templates/SilverStripe/Control/Controller.ss.

奖励:您可以SSViewer.source_file_comments通过 YAML 配置启用将 HTML 注释添加到呈现的页面源代码中,显示正在使用的模板。

于 2018-04-26T21:12:47.857 回答