2017-03-14 71 views
0

我想換行的每個元素的痕跡,這些微觀數據:TYPO3:裹麪包屑導航與微觀數據

<div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""> 
<a itemprop="url" href="/faz/frisch_deploy/master/xxx"> 
<span itemprop="title">Frisuren</span> 
</a> 
</div> 

這裏是我的Typo腳本的樣子:

  NO { 
       htmlSpecialChars = 1 
       allWrap = <li class="lvl1">|</li> || <li class="lvl2">|</li> || <li class="lvl3">|</li> || <li class="lvl4">|</li> 
       ATagTitle.field = subtitle // title 
       ATagTitle.noTrimWrap = | {LLL:EXT:myext/Resources/Private/Language/locallang.xml:menu.breadcrumb.title} | 
       ATagTile.insertData = 1 
      } 

我嘗試了一些「換行「功能,但它不起作用。

回答

2

與schema.org微工作示例:https://schema.org/BreadcrumbList

lib.breadcrumb = COA 
lib.breadcrumb { 
    10 = HMENU 
    10 { 
     special = rootline 
     special.range = 1|-1 
     wrap = <ol itemscope itemtype="http://schema.org/BreadcrumbList" aria-label="breadcrumbs" class="breadcrumb">|</ol> 

     1 = TMENU 
     1 { 
      NO = 1 
      NO { 
       wrapItemAndSub = <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">| </li> 
       ATagParams = itemprop="item" 
       stdWrap.wrap = <span itemprop="name">|</span> 
       ATagBeforeWrap = 1 
       allWrap = |<meta itemprop="position" content="{register:count_MENUOBJ}"> 
       allWrap.insertData = 1 
      } 
      CUR < .NO 
      CUR.doNotLinkIt = 1 
     } 
    } 
}