News

Overriding the FLUID templates

This is how the templates are overwritten by the Higher Education Package:

plugin.tx_news {
    view {
        templateRootPaths {
            0 = EXT:news/Resources/Private/Templates/
            1 = EXT:higher_education_package/Resources/Private/Templates/News/
        }

        partialRootPaths {
            0 = EXT:news/Resources/Private/Partials/
            1 = EXT:higher_education_package/Resources/Private/Partials/News/
        }

        layoutRootPaths {
            0 = EXT:news/Resources/Private/Layouts/
            1 = EXT:higher_education_package/Resources/Private/Layouts/News/
        }
    }
}

If you want to overwrite the templates you can set new paths with a increased number.

plugin.tx_news {
    view {
        templateRootPaths {
            20 = EXT:your_extension_key/Resources/Private/Templates/News/
        }

        partialRootPaths {
            20 = EXT:your_extension_key/Resources/Private/Partials/News/
        }

        layoutRootPaths {
            20 = EXT:your_extension_key/Resources/Private/Layouts/News/
        }
    }
}

Tip

See the general news documentation for further information:

https://docs.typo3.org/typo3cms/extensions/news/