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 11:01] – [Add a template path] 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 91: | Line 90: | ||
==== Configure template ==== | ==== Configure template ==== | ||
- | < | + | < |
- | ### Add template path for your extension | + | # Add template path for your extension |
lib.contentElement { | lib.contentElement { | ||
templateRootPaths { | templateRootPaths { | ||
Line 99: | Line 98: | ||
} | } | ||
- | ### | + | # Load defaults and define Template |
tt_content { | tt_content { | ||
- | | + | |
- | | + | |
- | templateName = NewContentElement | + | 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[' | ||
+ | </ | ||
+ |