---
title: "eigene Attribute zulassen - Rich snippets"
url: "https://www.typo3.net/d/110899-eigene-attribute-zulassen-rich-snippets"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2012-06-06"
last_reply: "2012-12-01"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# eigene Attribute zulassen - Rich snippets

Backend › RTE & CKEditor · 1 Antwort · gestartet 2012-06-06

## Eröffnungsbeitrag

**Toccamonium** · 2012-06-06 · [Beitrag #1](https://www.typo3.net/d/110899-eigene-attribute-zulassen-rich-snippets/1)

Hi,

damit Google bestimmten Inhalt besser semantisch erfassen kann, wollte ich für den RTE eigene Tags zulassen > Rich snippets. Leider schmeißt mir der Parser diese immer wieder raus. iframe/object funktioniert hingegen einwandfrei.

Hat jemand eine Idee, woran das liegen könnte, dass z.B.
<div itemprop="test"> wieder auf <div> zurückgesetzt wird?

```typoscript
RTE.default.proc {
  # Allow embed (Youtube) HTML tags in the RTE
  allowTags := addToList(object,param,embed,iframe,itemprop)
  allowTagsOutside := addToList(object,embed,iframe,itemprop)
  entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
  entryHTMLparser_db.tags {
				p.fixAttrib.align.unset >
				p.allowedAttribs = class,style,align,itemprop,itemtype
 
				div.fixAttrib.align.unset >
				div.allowedAttribs = class,style,align,itemprop,itemtype
 
			}
}
# Allow embed (Youtube) HTML tags in the RTE
lib.parseFunc_RTE.allowTags := addToList(object,param,embed,iframe,itemprop)
```

Danke!
TC

## Antworten

### [#2](https://www.typo3.net/d/110899-eigene-attribute-zulassen-rich-snippets/2) · connor · 2012-12-01

Hallo Toccamonium,
das hier fehlt noch:

- keepPDIVattrib = ...
- itemscope als Attribut mit aufnehmen!

Der RTE macht daraus itmescope="".
In diesem Fall setzt man itemscope="itemscope"

```typoscript
RTE.default.proc {
...
 keepPDIVattribs = class,style,align,itemscope,itemtype,itemprop
 entryHTMLparser_db.tags {
				p.fixAttrib.align.unset >
				p.allowedAttribs = class,style,align,itemscope,itemtype,itemprop
 
				div.fixAttrib.align.unset >
				div.allowedAttribs = class,style,align,itemscope,itemtype,itemprop
 
			}
}
```

LG Connor

---

Quelle: „eigene Attribute zulassen - Rich snippets“, typo3.net, https://www.typo3.net/d/110899-eigene-attribute-zulassen-rich-snippets
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
