如何在带有 link 的面包屑中设置 tx_news (TYPO3) 标题
How to set tx_news (TYPO3) title in breadcrumb WITH link
我在面包屑中实现了 tx_news 标题,总是像此处显示的打字错误: and it works fine but for now i need to get an link on the news title which points to itself. This is needed for structurel data correctness (https://schema.org/)。在该问题的任何新闻单一视图上查看结构化数据测试工具。我没有得到它的工作,也没有在上面找到任何在线提示。
这有可能吗?
那
呢
lib.url = TEXT
lib.url.data = getIndpEnv:TYPO3_REQUEST_URL
感谢提示。这对我有用:
[globalVar = GP:tx_news_pi1|news > 0]
lib.menu.breadcrumb.20 = COA
lib.menu.breadcrumb.20 {
wrap = <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" class="active"> | <meta itemprop="position" content="2" /></li>
10 = TEXT
10.wrap = <a href="|" target="_top" itemprop="item">
10.data = getIndpEnv:TYPO3_REQUEST_URL
20 = RECORDS
20 {
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
conf.tx_news_domain_model_news.htmlSpecialChars = 1
wrap = <span itemprop="name">|</span>
}
30 = TEXT
30.value = </a>
}
[end]
我在面包屑中实现了 tx_news 标题,总是像此处显示的打字错误:
那
呢lib.url = TEXT
lib.url.data = getIndpEnv:TYPO3_REQUEST_URL
感谢提示。这对我有用:
[globalVar = GP:tx_news_pi1|news > 0]
lib.menu.breadcrumb.20 = COA
lib.menu.breadcrumb.20 {
wrap = <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" class="active"> | <meta itemprop="position" content="2" /></li>
10 = TEXT
10.wrap = <a href="|" target="_top" itemprop="item">
10.data = getIndpEnv:TYPO3_REQUEST_URL
20 = RECORDS
20 {
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
conf.tx_news_domain_model_news.htmlSpecialChars = 1
wrap = <span itemprop="name">|</span>
}
30 = TEXT
30.value = </a>
}
[end]