This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
typo3_sitepackage_contentelements [2018/09/27 10:56] – admin | typo3_sitepackage_contentelements [2018/09/28 07:53] (current) – admin | ||
---|---|---|---|
Line 13: | Line 13: | ||
This will show your new element in the content element wizard | This will show your new element in the content element wizard | ||
- | <code typoscript Configuration/ | + | <code typoscript Configuration/ |
- | ####################################### | + | |
# Custom Contentelements based on fluid | # Custom Contentelements based on fluid | ||
mod.wizards.newContentElement.wizardItems.common { | mod.wizards.newContentElement.wizardItems.common { | ||
Line 87: | Line 86: | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | |||
+ | ==== Configure template ==== | ||
+ | |||
+ | <code typoscript> | ||
+ | # Add template path for your extension | ||
+ | lib.contentElement { | ||
+ | templateRootPaths { | ||
+ | 200 = EXT: | ||
+ | } | ||
+ | } | ||
+ | |||
+ | # Load defaults and define Template | ||
+ | tt_content { | ||
+ | myextkey_elementname =< lib.contentElement | ||
+ | myextkey_elementname { | ||
+ | templateName = NameOfYourTemplate | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Depending on which contentelement this is based on you can simply load. | ||
+ | |||
+ | For example this element should be based on '' | ||
+ | |||
+ | <code typoscript> | ||
+ | tt_content { | ||
+ | myextkey_elementname =< tt_content.image | ||
+ | myextkey_elementname { | ||
+ | templateName = NameOfYourTemplate | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | You'll find all available CEs in '' | ||
+ | |||
+ | ==== Config field for certain cType ==== | ||
+ | |||
+ | <code php> | ||
+ | $GLOBALS[' | ||
+ | $GLOBALS[' | ||
</ | </ | ||