0

我没有成功在我的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">

应该使用什么排版?

4

1 回答 1

1

这对我有用。

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

于 2015-02-10T20:58:36.023 回答