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¶
lib.contentBlock {
view {
partialRootPaths {
100 = EXT:site_package/Resources/Private/Partials/ContentElements/
}
}
}
Make Partials available for a specific Content Block¶
tt_content.myvendor_mycontentblockname {
view {
partialRootPaths {
100 = EXT:my_sitepackage/Resources/Private/Partials/ContentElements/
}
}
}
Note
Content Blocks reserves indexes below 100
.