在哪里可以找到SilverStripe中的标题部分?

在哪里可以找到SilverStripe中的标题部分?,silverstripe,Silverstripe,我想我快疯了我试过以下方法: cms/templates (nothing) framework/templates (nothing) themes/sunrise/templates (nothing) themes/sunrise/templates/Page.css (nothing) 我正在尝试在标记之间添加额外的代码。但我还是找不到他们 有什么想法吗 编辑: Page.ss只有以下内容: <div class="clearfix"></div> <di

我想我快疯了我试过以下方法:

cms/templates (nothing)
framework/templates (nothing)
themes/sunrise/templates (nothing)
themes/sunrise/templates/Page.css (nothing)
我正在尝试在
标记之间添加额外的代码。但我还是找不到他们 有什么想法吗

编辑:

Page.ss只有以下内容:

<div class="clearfix"></div>
<div style="position: relative; margin:-320px 0 0 0; width: 100%; min-width: 930px; z-index:-1; border-top-style:solid;border-top-width:8px; border-top-color:#8C2580;">
<div class="clearfix"></div></div>

<div id="content" class="clearfix"><!-- #content start -->

<div id="main" role="main" class="clearfix"><!-- #main start -->


    <section class="post-content clearfix" itemprop="articleBody"><!-- .post-content start -->
        $Content
        $Form
        $PageComments
    </section><!-- .post-content end -->

</div><!-- #main end -->

</div><!-- .content end -->

<div style="position: relative; margin:0 0 0 0; z-index:-1; border-bottom-style:solid;border-bottom-width:24px; border-bottom-color:#8C2580">
</div>

$Content
$Form
$PageComments

不幸的是,这对我来说不算什么,但我要试一试:

  • 如果您指的是头部内的标记、标记等,那么这些标记来自$MetaTags,并且通过regex插入到头部的某个位置

  • 如果您搜索的不仅仅是实际的内部内容,还必须位于模板文件夹中的某个位置

我不熟悉您使用的主题,可能它会从包含文件夹中包含一个模板,该文件夹位于其中 如果不存在,请查看您能找到的每个页面。ss,不仅在您的主题文件夹中,而且在您的mysite/templates(如果存在)中(我个人将所有模板放在mysite/templates中,而不是主题中)


另一种查找正在使用的模板的方法是silverstripe源文件注释, 如果激活,silverstripe将在html中包含html注释,说明使用了什么模板来创建什么html。 您可以这样激活它:

SS2.4中的
SSViewer::设置源文件注释(true)代码
在SS3.0中:我认为它在3.0中被破坏了,但是你可以尝试一下2.4版本
在ss 3.1中:将以下内容放入yml配置文件中:

SSViewer:
  # display template filenames as comments in the html output
  source_file_comments: true 
你用的是“日出”主题吗

如果是这样,与大多数SS主题一样,您可以在
themes/THEMENAME/templates/Page.SS
中找到任何模板的基础


在本例中,
从第29行开始。虽然,如果选择了主题,将使用它,但请检查CMS中的mysite/config(php或yml)和/或设置选项卡。

我找不到类似的内容。请看我的编辑。它是哪一页?我们谈论的是同一个日出主题吗?似乎Page.ss与templates/Layout下的页面相似。。。而主要的应该在模板下/