Overriding Templates 

EXT:feed_display is using Fluid as template engine.

This documentation won't bring you all information about Fluid but only the most important things you need for using it. You can get more information in the section Fluid templates of the Sitepackage tutorial. A complete reference of Fluid ViewHelpers provided by TYPO3 can be found in the ViewHelper Reference

Change the templates using TypoScript constants 

As any Extbase based extension, you can find the templates in the directory Resources/Private/.

By default, the following Fluid template files of this directory are used:

Page tree of directory EXT:feed_display/Resources/Private/
.
├── Layouts
│   └── General.html
├── Partials
│   ├── Feed
│   │   ├── Authors.html
│   │   ├── Categories.html
│   │   ├── Contributors.html
│   │   ├── Copyright.html
│   │   ├── Description.html
│   │   ├── Image.html
│   │   ├── Links.html
│   │   └── Title.html
│   ├── Feed.html
│   ├── Item
│   │   ├── Authors.html
│   │   ├── Categories.html
│   │   ├── Content.html
│   │   ├── Contributors.html
│   │   ├── Copyright.html
│   │   ├── Date.html
│   │   ├── Enclosures.html
│   │   ├── Latitude.html
│   │   ├── Links.html
│   │   ├── Longitude.html
│   │   ├── Source.html
│   │   ├── Title.html
│   │   └── UpdatedDate.html
│   └── Item.html
└── Templates
    └── Feed
        └── Display.html
Copied!

If you want to change a template, copy the desired files to the directory where you store the templates.

We suggest that you use a sitepackage extension. Learn how to Create a sitepackage extension.

In TYPO3 v13/v14 projects using the Site Set, define your own Fluid paths as Site Settings. Projects using static TypoScript records can still use the constant editor under the TypoScript module:

  • TYPO3 v13: Site ManagementTypoScript
  • TYPO3 v14: SitesTypoScript
Constant Editor: Fluid Template Paths

Constant Editor: Fluid Template Paths

Alternatively you can define the following TypoScript constants directly:

plugin.tx_feeddisplay_pi1 {
    view {
        templateRootPath = EXT:your_sitepackage/Resources/Private/Templates/FeedDisplay/
        partialRootPath = EXT:your_sitepackage/Resources/Private/Partials/FeedDisplay/
        layoutRootPath = EXT:your_sitepackage/Resources/Private/Layouts/FeedDisplay/
    }
}
Copied!