Skip to content
Advertisement

TYPO3 – Error by creating custom content element

I need your help creating a custom content element. I use TYPO3 ver. 10.4.21 and I’d added extensions (fluid_styled_content and sitepackage).

I could create a wizard and content type (CType) for dropdown list, but if I let show my content element on the frontend (websie), then an error occured: Oops, an error occurred! Code: 202111110917379495faab.

Maybe there are errors by template path…but I don’t know how I fix it.

I did from now on:

  1. Add a Datenbank in ext_localconf.php
JavaScript
  1. Add a Configuration in my_sitepackage_for_flipboxConfigurationTCAOverrides
JavaScript
  1. Add a content type (CType) in tt_content.php
JavaScript
  1. Add a edit page in tt_content.php
JavaScript
  1. Add a wizard in PageTS in ext_localconf.php
JavaScript

in All.tsconfig: Path to ContentElements-folder from All.tsconfig

JavaScript

in my_sitepackage_for_flipboxConfigurationTsConfigPageContentElements.tsconfig

JavaScript

in my_sitepackage_for_flipboxConfigurationTsConfigPageContentElementsoneColumnFlipbox.tsconfig

JavaScript
  1. Add a dataprocessing in my_sitepackage_for_flipboxClassesDataProcessingHeighleightProcessing.php
JavaScript
  1. Add a frontend-output in my_sitepackage_for_flipboxConfigurationTypoScriptsetup.typoscript
JavaScript

in C:mizuki.rasani.netmy_sitepackage_for_flipboxConfigurationTypoScriptContentElementsoneColumnFlupbox.typoscript

JavaScript

And now it shows an error “Oops, an error occurred! Code: 20211111092555c76b0214”.

If I write a code in setup-config by root with debug, it comes an error:

JavaScript

in /www/htdocs/w00c525b/mizuki.rasani.net/typo3_src-10.4.21/vendor/typo3fluid/fluid/src/View/TemplatePaths.php line 598

How can I fix it? I think there are some problems in typoscript or something template path…. But I don’t know what happens.

I hofe you can help me. Thank you.

Advertisement

Answer

Template name must b start with a capital letter.

JavaScript

Now, your template in this directory, EXT:my_sitepackage_for_flipbox/Resources/Private/Templates/ should be OneColumnFlipbox.html

That’s it, hope this will work for you.

For more…

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement