TYPO3-Documentation / TYPO3CMS-Tutorial-SitePackage

Tutorial how to create a TYPO3 site package extension from scratch
https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/
2 stars 49 forks source link

Missing example to override paths for content elements #170

Open Alagts opened 2 months ago

Alagts commented 2 months ago

In "Set for providing TypoScript" we show how we can override Templates for Content Elements. But there is an example missing.

Here is the code introducing the topic:

styles:
  templates:
    layoutRootPath: EXT:site_package/Resources/Private/Layouts/ContentElements
    partialRootPath: EXT:site_package/Resources/Private/Partials/ContentElements
    templateRootPath: EXT:site_package/Resources/Private/Templates/ContentElements
  content:
    textmedia:
      maxW: 1200
      maxWInText: 600
      linkWrap:
        lightboxEnabled: true
        lightboxCssClass: lightbox

Current behavior

Right now there is an example missing that demonstrates how one can override the paths for the content elements.

Expected behavior/output

In this section should be an example describing how an integrator can override the paths for using its own templates for a content element.

Links

Set for providing TypoScript

TYPO3 versions

e.g. 11, 12, main (13)