[TYPO3-english] BE Module can not locate template in 7.x
Vikram Mandal
vikram at fivee.in
Tue Aug 29 17:13:11 CEST 2017
On 08/24/2017 10:54 AM, Vikram wrote:
> Hi,
>
>
> I have this weird issue for few days now. My new backend module can not
> locate the template file in Typo3 7.x but it works good in Typo3 8.x
> though. Here are my TS:
>
> module.tx_t3inamp_amp {
> view {
> # cat=module.tx_t3inamp_amp/file; type=string; label=Path to
> template root (BE)
> templateRootPath = EXT:t3in_amp/Resources/Private/Templates/Backend/
> # cat=module.tx_t3inamp_amp/file; type=string; label=Path to
> template partials (BE)
> partialRootPath = EXT:t3in_amp/Resources/Private/Partials/Backend/
> # cat=module.tx_t3inamp_amp/file; type=string; label=Path to
> template layouts (BE)
> layoutRootPath = EXT:t3in_amp/Resources/Private/Layouts/Backend/
> }
> persistence {
> # cat=module.tx_t3inamp_amp//a; type=string; label=Default storage PID
> storagePid =
> }
> }
>
> --------
> module.tx_t3inamp_web_t3inampamp {
> persistence {
> storagePid = {$module.tx_t3inamp_amp.persistence.storagePid}
> }
> view {
> templateRootPaths {
> 0 = EXT:t3in_amp/Resources/Private/Templates/Backend/
> 1 = {$module.tx_t3inamp_amp.view.templateRootPath}
> }
> partialRootPaths {
> 0 = EXT:t3in_amp/Resources/Private/Partials/Backend/
> 1 = {$module.tx_t3inamp_amp.view.partialRootPath}
> }
> layoutRootPaths {
> 0 = EXT:t3in_amp/Resources/Private/Layouts/Backend/
> 1 = {$module.tx_t3inamp_amp.view.layoutRootPath}
> }
> }
> }
>
> ----
>
> The template files are under
> /typo3conf/ext/t3in_amp/Resources/Private/Templates/Backend/
>
> I have tried chnaging the locations to
> /typo3conf/ext/t3in_amp/Resources/Private/Backend/Templates/
>
> But these also did not work out.
>
> I keep getting this error:
> Sorry, the requested view was not found.
>
> The technical reason is: No template was found. View could not be
> resolved for action "start" in class
> "T3IN\T3inAmp\Controller\AMPController".
>
> I do have the file at
> /typo3conf/ext/t3in_amp/Resources/Private/Templates/Backend/Start.html
>
> regards
> Vikram
It worked when I placed by file under:
/Resources/Private/Templates/AMP/
It is like: /Resources/Private/Templates/<Controller>
And the TS had no effect. May be I have some bug in the extension
created by the extension_builder extension.
--
Vikram
=============================
http://T3IN.COM
FiveE Technologies.
=============================
More information about the TYPO3-english
mailing list