Zum Inhalt springen

Custom Contentelement - Problem mit Fluid-Template

Erstellt am 16. März 2018 · 2 Antworten · letzte Antwort am 19. März 2018

Tags: TYPO3 8, Frage

mimii ·

Hallo ins Forum,

kann mir bitte jeamand erklären warum dies Variante zum Fehler "ERROR: Content Element with uid "49" and type "bs4_card" has no rendering definition!" führt

lib.contentElement {
  templateRootPaths {
    100 = EXT:bs4/Resources/Private/Templates
  }
  partialRootPaths {
    100 = EXT:bs4/Resources/Private/Partials
  }
  layoutRootPaths {
    100 = EXT:bs4/Resources/Private/Layouts
  }
}

tt_content {
    bs4_card  < lib.contentElement
    bs4_card {
        templateName = Card.html
        dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
            10 {
                references.fieldName = image
            	references.table = tt_content
            	as = cardImg				
            }
        }
    }
}

Und diese Variante nicht und das entsprechende Template mit Bildern dargestellt wird.

tt_content {
	bs4_card = FLUIDTEMPLATE
	bs4_card {
		file = EXT:bs4/Resources/Private/Templates/Card.html
        dataProcessing {
		dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
		10 {
            	references.fieldName = image
            	references.table = tt_content
            	as = cardImg
            }
        } 
    }
}

Ich möchte nun aber Teile des Templates in Partial auslagern und somit muss ich ja den partialRootPaths angeben, was in der zweiten Variante wiederum zu Problemen führt.

Danke für n Tipp und Gruß.
mimii

Teisinger ·

was wie wo?

Beim zweiten hast du ja die template / partial / layout pfade nicht angegeben... würde ich mal behaupten. 🙂

mimii ·

Hallo und Danke für die Antwort, das hat mich auf die Sprünge gebracht. Das "Problem" war einfach, es fehlte im oberen Code.

lib.contentElement = FLUIDTEMPLATE

Ich sag nur Freitagnachmittag.... *autsch*.

THX und Gruß
mimii