Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vijayrami/1e2e9195f91d3cc879c8 to your computer and use it in GitHub Desktop.

Select an option

Save vijayrami/1e2e9195f91d3cc879c8 to your computer and use it in GitHub Desktop.
How to Change Typo3 News Extension's Templates Path
From backend go into your root template (or in extension template where News Extension is included).
In that, in Constants Editor Add below code:
plugin.tx_news {
view {
templateRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Templates/
partialRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Partials/
layoutRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Layouts/
}
}
And in Setup, Add below code:
plugin.tx_news {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:news/Resources/Private/Templates/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Templates/
}
partialRootPaths >
partialRootPaths {
0 = EXT:news/Resources/Private/Partials/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Partials/
}
layoutRootPaths >
layoutRootPaths {
0 = EXT:news/Resources/Private/Layouts/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/News/Layouts/
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment