typ3内容元素标题呈现为h1

时间:2016-02-28 14:44:36

标签: html5 typescript typo3

我使用的是typo3 7.6.3并且内容元素标题有问题。

它呈现为

 <h2>

标记,但我想将其渲染为

<h1>

标签

这是正确的TypoScript吗?

谢谢!

常量

content.defaultHeaderType = 1

设置

page = PAGE
page {
  config.simulateStaticDocuments = 0
   config.baseURL = http://www.domain.de/
   config.tx_realurl_enable = 1

  config.doctype = html5
  meta.author = domain.de
  meta.publisher = domain.de
  meta.keywords = eins zwei
  meta.description = domain.de text
  meta.revisit-after = 7 days
  meta.robots = all
  meta.rating = general
  meta.viewport = width=device-width, initial-scale=1, maximum-scale=1
  meta.PAGE-TOPIC = Information
  meta.PAGE-TYPE  = Information

  shortcutIcon = fileadmin/design/images/favicon.png

  includeCSS {
    screen1 = fileadmin/design/css/bootstrap.css
    screen1.title = display
    screen1.media = screen 

  screen2 = fileadmin/design/css/style.css
  screen2.title = display
  screen2.media = screen 

  screen3 = fileadmin/design/css/font-awesome.min.css
 screen3.title = display
  screen3.media = screen 

}

includeJS {
file1 = fileadmin/design/js/jquery-2.2.0.min.js
file2 = fileadmin/design/js/bootstrap.min.js
}

}

page.20 = TEMPLATE
page.20.template = FILE
page.20.template.file = fileadmin/design/index.html
page.20.marks{
CONTENTLEFT < styles.content.getLeft
CONTENTLEFT.renderObj.stdWrap.dataWrap=<div class="col-md-6">|</div>

CONTENTRIGHT< styles.content.getRight
CONTENTRIGHT.renderObj.stdWrap.dataWrap=<div class="col-md-6">|</div>

CONTENT < styles.content.get
CONTENT.renderObj.stdWrap.dataWrap=<div class="col-md-12">|</div>



MENU = HMENU
MENU.entryLevel = 0
#NAVIMAIN.excludeUidList = 

MENU {
1 = TMENU
1 {
expAll = 1

NO.allWrap = <li>|</li>
NO.ATagTitle.field = abstract // description // title

ACT = 1
ACT.wrapItemAndSub = <li class="active">|</li>
ACT.ATagTitle.field = abstract // description // title

IFSUB = 1
IFSUB.before = <a href="#" class="dropdown-toggle" data-toggle="dropdown">
IFSUB.after =  <b class="caret"></b></a>
IFSUB.doNotLinkIt = 1
IFSUB.wrapItemAndSub = <li class="dropdown">|</li>
IFSUB.ATagTitle.field = abstract // description // title

ACTIFSUB = 1
ACTIFSUB.before = <a href="#" class="dropdown-toggle" data- toggle="dropdown">
ACTIFSUB.after =  <b class="caret"></b></a>
ACTIFSUB.doNotLinkIt = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown active">|</li>
ACTIFSUB.ATagTitle.field = abstract // description // title

wrap = <ul class="nav navbar-nav">|</ul>
}

   2 = TMENU
 2 {
expAll = 1

ACT = 1
ACT.wrapItemAndSub = <li class="active">|</li>
ACT.ATagTitle.field = abstract // description // title

ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = |
ACTIFSUB.before = <li class="divider"></li><li class="nav-header">
ACTIFSUB.after = </li>
ACTIFSUB.doNotLinkIt = 1
ACTIFSUB.ATagTitle.field = abstract // description // title

NO.allWrap = <li>|</li>
NO.ATagTitle.field = abstract // description // title

IFSUB = 1
IFSUB.before = <li class="divider"></li><li class="nav-header">
IFSUB.after = </li>
IFSUB.doNotLinkIt = 1
IFSUB.ATagTitle.field = abstract // description // title

SPC = 1
SPC.allWrap = <li class="divider"></li><li class="nav-header">|</li>

wrap = <ul class="dropdown-menu">|</ul>
}

}
}

enter image description here

enter image description here

更新2

在css_styled_content / static我发现了这个: enter image description here

enter image description here

更新3 enter image description here

1 个答案:

答案 0 :(得分:1)

常量字段的 TypoScript 模板中,您有以下行:

content.defaultHeaderType = 2

默认 标题确定为H2,绝对是由某人设置的,默认值为H1

如果这不是暗示有人干扰CSS样式内容的线索,那么您只需要预览TypoScript模板并搜索完成它的地方。