Olle Härstedt
Olle Härstedt

Reputation: 4020

Custom content element is not rendered in front-end

Need help with a custom content element that is not being rendered. This is my typoscript:

tt_content.cat_button = FLUIDTEMPLATE
tt_content.cat_button {
    template = FILE
    template.file = EXT:so_product/Resources/Private/Templates/ContentELements/CategoryButton.html
    layoutRootPath = EXT:so_product/Resources/Private/Layouts/
}

Even if I misspell CategoryButton.html, there won't be an error message. So how will I know if the correct template is found?

If I remove rows template and template.file, I get message "Oops, no template found..."

My template only contains <p>Test</p>. Do I need sections and layout too?

This is the guide I used: http://docs.typo3.org/typo3cms/extensions/sitepackage/CustomContentElements/Index.html

No errors in log.

Upvotes: 0

Views: 465

Answers (2)

Olle H&#228;rstedt
Olle H&#228;rstedt

Reputation: 4020

Simple typo:

ContentELements -> ContentElements

Also bug in TYPO3 that didn't display error message.

Upvotes: 0

Sascha
Sascha

Reputation: 56

Your typoscript is simply wrong.

Check the TSRef http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Fluidtemplate/Index.html

tt_content.cat_button = FLUIDTEMPLATE
tt_content.cat_button {
   file = EXT:so_product/Resources/Private/Templates/ContentELements/CategoryButton.html
}

Upvotes: 1

Related Questions