typo3typo3-extensionstypo3-12.x

Bootstrap_package custom Template


I use TYPO3 version 12 in the latest version for the TYPO3 Bootstrap package version 14.

https://github.com/benjaminkott/bootstrap_package

I now want to outsource templates, but it doesn't work. When I make changes to my modified templates, I always get the output from the Bootstrap extension:

Here is my Typoscript:

plugin.tx_bootstrappackage {
  view {
    layoutRootPaths {
      10 = EXT:sitepackage/Resources/Private/bootstrap_package/Layouts/
    }
    partialRootPaths {
      10 = EXT:sitepackage/Resources/Private/bootstrap_package/Partials/
    }
    templateRootPaths {
      10 = EXT:sitepackage/Resources/Private/bootstrap_package/Templates/
    }
  }
}

Change made to sitepackage/Resources/Private/bootstrap_package/Templates/ContentElements/Header.html. But these are not displayed to me.

Why?


Solution

  • Remove the Typoscript setup you made and instead set this to the Typoscript constants of your sitepackage extension:

    plugin.tx_bootstrappackage {
        view {
            templateRootPath = EXT:sitepackage/Resources/Private/bootstrap_package/Templates/
            partialRootPath = EXT:sitepackage/Resources/Private/bootstrap_package/Partials/
            layoutRootPath = EXT:sitepackage/Resources/Private/bootstrap_package/Layouts/
        }
    }
    

    And check the template module in the backend, to make sure, that your Typoscript constants are loaded.