Hallo,
ich hoffe mir kann Jemand den Richtigen Tipp geben wo der Fehler (Meiner?) ist, ich habe das Addon vivomedia-neos-simple-table von “dlubitz” Installiert.
Soweit Funktioniert das auch Super, er hat dann etwas in “Extend” geschrieben auf der Github seite (der link oben), was ich gern nutzen wollen würde.
Aber Sobald ich die Folgende Konfiguration hinzufüge:
prototype(VIVOMEDIA.SimpleTable:HtmlTableColumn) {
content {
isTrue {
condition = ${item == '{true}'}
renderer = TYPO3.TypoScript:Tag) {
tagName = 'img'
attributes.src = TYPO3.TypoScript:ResourceUri {
path = 'resource://VIVOMEDIA.SitePackage/Public/icons/checked.svg'
}
}
}
isFalse {
condition = ${item == '{false}'}
renderer = TYPO3.TypoScript:Tag) {
tagName = 'img'
attributes.src = TYPO3.TypoScript:ResourceUri {
path = 'resource://VIVOMEDIA.SitePackage/Public/icons/unchecked.svg'
}
}
}
erhalte ich einen “500 Internal Server Error” nach dem ich dies eingetragen und den Cache gelöscht habe.
In den Exception steht dazu folgendes:
Exception #1180604192 in line 496 of /var/www/Neos/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/TYPO3_TypoScript_Core_Parser.php: Syntax error: Invalid value “TYPO3.TypoScript:Tag)” in value assignment.
26 TYPO3\TypoScript\Core\Parser_Original::getProcessedValue(“TYPO3.TypoScript:Tag)”)
25 TYPO3\TypoScript\Core\Parser_Original::parseValueAssignment(“prototype(VIVOMEDIA.SimpleTable:HtmlTableColumn).content.isTrue.renderer”, “TYPO3.TypoScript:Tag)”)
24 TYPO3\TypoScript\Core\Parser_Original::parseObjectDefinition(“renderer = TYPO3.TypoScript:Tag) {”)
23 TYPO3\TypoScript\Core\Parser_Original::parseTypoScriptLine(" renderer = TYPO3.TypoScript:Tag) {")
22 TYPO3\TypoScript\Core\Parser_Original::parse("prototype(TYPO3.Neos:Shortcut) < prototype(TYPO3.Neos:Document) {
templatePath = 'resource://TYPO3.Neos/Private/Templates/NodeTypes/Shortcut.html’
title = ${q(node).property(“title”)}
uriPathSegment = ${q(node).property(“uriPathSegment”)}
targetMode = ${q(node).property(“targetMode”)}
target = ${q(node).property(“target”)}
}
als ich die Exception gesehen habe, habe ich dies angepasst:
prototype(VIVOMEDIA.SimpleTable:HtmlTableColumn) {
content {
isTrue {
condition = ${item == '{true}'}
renderer = TYPO3.TypoScript:Tag {
tagName = 'img'
attributes.src = TYPO3.TypoScript:ResourceUri {
path = 'resource://VIVOMEDIA.SitePackage/Public/icons/checked.svg'
}
}
}
isFalse {
condition = ${item == '{false}'}
renderer = TYPO3.TypoScript:Tag {
tagName = 'img'
attributes.src = TYPO3.TypoScript:ResourceUri {
path = 'resource://VIVOMEDIA.SitePackage/Public/icons/unchecked.svg'
}
}
}
}
Das Problem besteht aber weiterhin, hat Jemand bereits mal das oder ein ähnliches Problem gehabt, und kann mir sagen wo genau der Fehler liegt? ich möchte eigentlich nur die “{true} / {false}” mit einem Icon überschreiben. Und den Typo3.TypoScript:Tag gibt es laut Dokumentation doch?
Gruß
Sascha “Ryuujin” Hoerner