[英]Typo3 Rich Snippets with typoscript
我无法在我的typo3站点中实现丰富的代码片段。 基本上,我尝试包装html标记,并包含元摘录,但无济于事,而是一连串的网站错误。
page.meta.itemprop.name = name page.meta.itemprop.description = description page.meta.itemprop.image = http://www.example.com/img/01.png
html代码如下
<html itemscope itemtype="http://schema.org/Organization"> <meta itemprop="name" content="name"> <meta itemprop="description" content="description"> <meta itemprop="image" content="http://www.example.com/image.png">
应该使用什么打字稿?
这为我解决了。
config.htmlTag_stdWrap { setContentToCurrent = 1 cObject = COA cObject { 1 = TEXT 1.value = itemscope 1.noTrimWrap = | | | 2 = TEXT 2.value = itemtype="http://schema.org/Organization" 2.noTrimWrap = | | | 3 = TEXT 3.value = lang="en" wrap = <html | > } } page { headerData { 4 = TEXT 4.value ( <meta itemprop="name" content="Your site Name"> <meta itemprop="description" content="Your site description"> <meta itemprop="image" content="http://www.example.com/img/01.png"> ) } }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.