首页 文章

如何从typo3中的扩展数据库中添加 Headers 到痕迹?

提问于
浏览
0

使用kickstart我为列表类别和产品创建了一个扩展 . 我需要在我的痕迹中显示类别 Headers /名称和产品 Headers /名称 . 目前我编码从数据库调用(“40 =记录”)它是只显示

结果: - 首页>页面名称»

我的网址:-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
           }

          }

}

2 回答

  • 0

    这是新闻扩展的一个例子 . 您可以对扩展使用相同的方法 .

    http://forge.typo3.org/projects/extension-news/wiki/Add_news_to_breadcrumb_menu

  • 1

    我们可以从我们在typo3中创建的任何扩展数据库中添加字段 Headers 到痕迹 .

    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>
         }
    }
    

相关问题