Shared Partials

Sometimes you want to reuse Partials from your extension in your Content Block template. This is done by extending the partialRootPaths of the default Content Block FLUIDTEMPLATE definition.

Make Partials available for every Content Block

EXT:site_package/Configuration/TypoScript/setup.typoscript
 lib.contentBlock {
     view {
         partialRootPaths {
             100 = EXT:site_package/Resources/Private/Partials/ContentElements/
         }
     }
 }

Make Partials available for a specific Content Block

EXT:site_package/Configuration/TypoScript/setup.typoscript
 tt_content.myvendor_mycontentblockname {
     view {
         partialRootPaths {
             100 = EXT:my_sitepackage/Resources/Private/Partials/ContentElements/
         }
     }
 }

Note

Content Blocks reserves indexes below 100.