Typo3 如何为tx_新闻类型设置面包屑3
我有一个打字错误3的网站。我需要设置一个面包屑。对于新闻,我需要在“news Detail”(新闻插件的页面标题)的位置显示新闻标题。如何实现这一点 我的代码是Typo3 如何为tx_新闻类型设置面包屑3,typo3,typoscript,fluid,extbase,tx-news,Typo3,Typoscript,Fluid,Extbase,Tx News,我有一个打字错误3的网站。我需要设置一个面包屑。对于新闻,我需要在“news Detail”(新闻插件的页面标题)的位置显示新闻标题。如何实现这一点 我的代码是 <v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/> 或任何其他获得标题的方法,如 <ol class="breadcrumb">
<v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/>
或任何其他获得标题的方法,如
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/news">News</a></li>
<li class="active"> ???????? </li>
</ol>
李>
对不起,这是不可能开箱即用的。新闻记录不是真实的页面,因此必须添加一些不同的内容
不要使用viewhelper,而是使用以下TS代码
lib.navigation_breadcrumb = COA
lib.navigation_breadcrumb {
stdWrap.wrap = <ol class="breadcrumb">|</ol>
10 = HMENU
10 {
special = rootline
#special.range = 1
1 = TMENU
1 {
noBlur = 1
NO = 1
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = subtitle // title
stdWrap.htmlSpecialChars = 1
}
CUR <.NO
CUR {
wrapItemAndSub = <li class="active">|</li>
doNotLinkIt = 1
}
}
}
# Add news title if on single view
20 = RECORDS
20 {
if.isTrue.data = GP:tx_news_pi1|news
dontCheckPid = 1
tables = tx_news_domain_model_news
source.data = GP:tx_news_pi1|news
source.intval = 1
conf.tx_news_domain_model_news = TEXT
conf.tx_news_domain_model_news {
field = title
htmlSpecialChars = 1
}
wrap = <li>|</li>
}
}
lib.navigation\u breadcrumb=COA
lib.navigation\u面包屑{
stdWrap.wrap=|
10=汉努
10 {
特殊=根线
#特殊范围=1
1=t菜单
1 {
noBlur=1
否=1
没有{
wrapItemAndSub=|
ATagTitle.field=副标题//标题
stdWrap.htmlSpecialChars=1
}
CUR新闻详细信息页面必须设置为“隐藏在菜单中”