2012-12-28 61 views
0

使用kickstart我創建了一個擴展列表類別和product.And我需要在我的麪包屑中顯示產品標題/名稱&產品標題/名稱。目前我編碼從數據庫調用(「40 = RECORDS」)它只是顯示如何從typo3中的擴展數據庫添加標題到breadcrumb?

結果: - 首頁>頁面名稱»

我的網址:-http://www.domain.com/page_name/

 lib.breadcrumb=COA 
     lib.breadcrumb { 
     40 = RECORDS 
     40 { 
      dontCheckPid = 1 
      tables = TABLE_NAME 
      source.data = GPvar:tx_pi1_NAME|EXTKEY 
      conf.EXTKEY = TEXT 
      conf.EXTKEY.field = FIELD_NAME 
      wrap =  »  | 
      } 


      10 = HMENU 
      10 { 
       special = rootline 
     # "not in menu pages" should show up in the breadcrumbs menu 
     includeNotInMenu = 1 
      1 = TMENU 
      # no unneccessary scripting. 
      1.noBlur = 1 
      # Current item should be unlinked 
      1.CUR = 1 
      1.target = _self 
      1.wrap = <div class="breadcrumb-class"> | </div> 
      1.NO { 
      stdWrap.field = title 
      ATagTitle.field = nav_title // title 
      linkWrap = ||*| > |*| 
      } 
      # Current menu item is unlinked 
      1.CUR { 
      stdWrap.field = title 
      linkWrap = ||*| &nbsp>&nbsp&nbsp |*| 
      doNotLinkIt = 1 
      } 

      } 

}

回答

0

我們可以添加標題字段從我們在TYPO3創建任何extention的數據庫導航。

lib.breadcrumb = COA 
lib.breadcrumb { 
    stdWrap.wrap = <ul class="breadcrumb">|</ul> 
    entryLevel = 1 

    10 = HMENU 
    10 { 
     special = rootline 

     1 = TMENU 
     1 { 
      noBlur = 1 

      NO = 1 
      NO { 
       wrapItemAndSub = <li>|</li> 
       ATagTitle.field = subtitle // title 
       linkWrap = ||*|&nbsp;&rsaquo;&nbsp |*| 
       stdWrap.htmlSpecialChars = 1 
      } 

      CUR <.NO 
      CUR { 
       wrapItemAndSub = <li class="active">|</li> 
      } 
     } 
    } 

    101=RECORD 
    101 { 
     tables = tx_table_name 
     source.data = GPvar:tx_plugin_name|param //param passing in the url 
     conf.tx_besiproduct_product = TEXT 
     conf.tx_besiproduct_product.field = field_name 
     conf.tx_besiproduct_product.required = 1 
     conf.tx_besiproduct_product.wrap = <li >|</li> 
    } 
}