[TYPO3-german] span tag und itemprop Probleme bei Typo3 6.2

Daniel Feiler daniel.feiler at f-it-s.com
Tue Oct 21 14:30:19 CEST 2014


Hallo Zusammen,
ich soll hier microdata (schema.org) verwenden nur funktioniert das irgendwie überhaupt nicht. Zur Fehlersuche habe ich einfach mal, in der Quellcode-Ansicht im RTE den auf schema.org angebotenen Beispielcode eingefügt (Copy & Paste) dieser sieht so aus:

<div itemscope itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization">
  <span itemprop="name">Google.org (GOOG)</span>
Contact Details:
  <div itemprop="address" itemscope itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/PostalAddress">
    Main address:
      <span itemprop="streetAddress">38 avenue de l'Opera</span>
      <span itemprop="postalCode">F-75002</span>
      <span itemprop="addressLocality">Paris, France</span>
    ,
  </div>
    Tel:<span itemprop="telephone">( 33 1) 42 68 53 00 </span>,
    Fax:<span itemprop="faxNumber">( 33 1) 42 68 53 01 </span>,
    E-mail: <span itemprop="email">secretariat(at)google.org</span>
Members:
- National Scientific Members in 100 countries and territories: Country1, Country2, ...
- Scientific Union Members, 30 organizations listed in this Yearbook:
  <span itemprop="member" itemscope itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization">
    Member1
  </span>,
  <span itemprop="member" itemscope itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization">
    Member2
  </span>,
History:
</div>

nach dem 1. Speichern Sieht er so aus:

<div itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf] schema.org/Organization"><p> <span itemprop="name">Google.org (GOOG)</span> Contact Details: </p>
<div itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/PostalAddress" itemprop="address"><p> Main address: <span itemprop="streetAddress">38 avenue de l'Opera</span> <span itemprop="postalCode">F-75002</span> <span itemprop="addressLocality">Paris, France</span> , </p></div>
<p> Tel:<span itemprop="telephone">( 33 1) 42 68 53 00 </span>, Fax:<span itemprop="faxNumber">( 33 1) 42 68 53 01 </span>, E-mail: <span itemprop="email">secretariat(at)google.org</span> Members: - National Scientific Members in 100 countries and territories: Country1, Country2, ... - Scientific Union Members, 30 organizations listed in this Yearbook: <span itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization" itemprop="member"> Member1 </span>, <span itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization" itemprop="member"> Member2 </span>, History: </p></div>

es sind also ein paar P-Tags hinzugekommen und Zeilenumbrüche verschwunden, soweit so gut wenn ich aber nun noch einmal speichere sieht das ganze so aus:

<div itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/Organization"><p> Google.org (GOOG) Contact Details: </p>
<div itemscope="" itemtype="[vorderer teil entfernt da ich das anscheinen nicht darf]schema.org/PostalAddress" itemprop="address"><p> Main address: 38 avenue de l'Opera F-75002 Paris, France , </p></div>
<p> Tel:( 33 1) 42 68 53 00 , Fax:( 33 1) 42 68 53 01 , E-mail: secretariat(at)google.org Members: - National Scientific Members in 100 countries and territories: Country1, Country2, ... - Scientific Union Members, 30 organizations listed in this Yearbook: Member1 , Member2 , History: </p></div>

Es sind also nun alle span Tags verschwunden.
Grundsätzlich ist das ziemlich uncool und absolut inakzeptabel.

Kennt jemand dieses Problem und vor allem hat jemand eine Lösung dafür?
Hier noch die Systemdaten:

CentOS 6.5
PHP version:5.4.32
Typo3 version 6.2.5

und die RTE Config:
RTE{
	classes {
		text {
			name = Test Text Class
			}
		contenttextpar {		
			name = Content Text in P Tag
			}
		}	
	default{
		contentCSS = fileadmin/templates/style_01.css
		showButtons := addToList(showmicrodata, pastetoggle, editelement, inserttag)
		allowedClasses := addToList(text, contenttext, contenttextpar,contenttextspan, csc-frame-frame1, csc-frame-frame2,align-justify,align-right,align-center,align-left,component-items, important, name-of-person, detail, external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail, indent, component-items-ordered, action-items-ordered, component-items,action-items)
 		buttons.blockstyle.showTagFreeClasses = 1
 		buttons.textstyle.showTagFreeClasses = 1
 		buttons.blockstyle.tags.div.allowedClasses := addToList(contenttextpar ,text, contenttext, contenttextspan) 
 		buttons.textstyle.tags.span.allowedClasses := addToList(text, contenttext,contenttextpar,contenttextspan  )
 		buttons.inserttag.tags.span.allowedAttribs := addToList(itemscope, itemtype, itemprop)
 		 buttons.inserttag.tags.div.allowedAttribs := addToList(itemscope, 
 		proc{
			allowTags := addToList(span)			
			remapParagraphTag = div,span
			dontConvBRtoParagraph  = 1
			entryHTMLparser_db = 1
			entryHTMLparser_db {
				allowTags < RTE.default.proc.allowTags
				tags {
					span.allowedAttribs := addToList(itemscope,itemtype,itemprop)
							rmTagIfNoAttrib = 1
					}
				}
			}
			HTMLparser_db.tags.span.allowedAttribs := addToList(itemscope,itemtype,itemprop)
			HTMLparser_rte {
  		              # tags die erlaubt/verboten sind
		              allowTags < RTE.default.proc.allowTags
		              denyTags < RTE.default.proc.denyTags
		              # entfernt html-kommentare
		              removeComments = 1
		             # tags die nicht übereinstimmen werden nicht entfernt (protect / 1 / 0)
		             keepNonMatchedTags = 0
		             # Tags, die nicht richtig verschachtelt sind, werden entfernt
		             #keepNonMatchedTags = 1
           		}
			allowedClasses < RTE.default.allowedClasses
			fixAttrib.style.unset =1
			rmTagIfNoAttrib =1
	        }
	}
}


More information about the TYPO3-german mailing list