在Hmenu的Typo3获取当前的pagetitle

时间:2013-09-11 06:59:01

标签: typo3 typoscript

我想在Typo3中获取当前页面的页面标题。我想包装一个div-Box for a Hmenu。这是有效的,但我也希望div中的标题是当前页面的标题。我的typoscript看起来像这样

temp.pagetitle = TEXT
temp.pagetitle.field=title 
page=PAGE
page.typeNum = 0
page.10.marks.LEFT_MENU = HMENU
page.10.marks.LEFT_MENU {
special = directory
special.value = {$pwcms.linkesMenu.rootSeitenID}
excludeUidList = {$pwcms.linkesMenu.nichtSichtbareSeiten}
stdWrap.preCObject < temp.pagetitle
stdWrap.wrap = <div class="bigBox shadow"> <div class="csc-header csc-header-n1">
<h1 class="csc-firstHeader">temp.pagetitle</h1></div>| </div>
stdWrap.wrap.insertData = 1

如果我保存这些设置并重新加载页面,我的div框中的标题只是说“temp.pagetitle”

1 个答案:

答案 0 :(得分:0)

我想这应该是某种形式:

page = PAGE
page.typeNum = 0
page.10.marks.LEFT_MENU = HMENU
page.10.marks.LEFT_MENU {
  special = directory
  special.value = {$pwcms.linkesMenu.rootSeitenID}
  excludeUidList = {$pwcms.linkesMenu.nichtSichtbareSeiten}
  stdWrap.preCObject = TEXT
  stdWrap.preCObject.data = page : file
  stdWrap.preCObject.wrap = <div class="bigBox shadow"> <div class="csc-header csc-header-n1">
  <h1 class="csc-firstHeader"> | </h1> </div> </div>
}