Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vijayrami/9cf406a44dcf227085f5 to your computer and use it in GitHub Desktop.
Save vijayrami/9cf406a44dcf227085f5 to your computer and use it in GitHub Desktop.
How to Change Typo3 Powermail Extension's Templates Path
From backend go into your root template (or in extension template where Powermail Extension is included).
In that, in Constants Editor Add below code:
plugin.tx_powermail {
view {
templateRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Templates/
partialRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Partials/
layoutRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Layouts/
}
}
And in Setup, Add below code:
plugin.tx_powermail {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:powermail/Resources/Private/Templates/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Templates/
}
partialRootPaths >
partialRootPaths {
0 = EXT:powermail/Resources/Private/Partials/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Partials/
}
layoutRootPaths >
layoutRootPaths {
0 = EXT:powermail/Resources/Private/Layouts/
1 = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Layouts/
}
}
}
@Nostrabramus
Copy link

Nostrabramus commented Dec 14, 2017

Hello,
I have a problem with overriding of templates root path.
I can't override it and powermail keep on using its own template ("Form.html" inside "Resources/Private/Templates/Form/")

I'm using powermail 4.3.2 on TYPO3 8.7.8

This is my typoscript setup:

plugin.tx_powermail {
    view {
        templateRootPaths {
            0 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Templates/
            1 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Templates/
        }
        partialRootPaths {
            0 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Partials/
            1 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Partials/
        }
        layoutRootPaths {
            0 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Layouts/
            1 = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Layouts/
        }
    }
}

and this are my typoscript constants:

plugin.tx_powermail {
        view {
                templateRootPath = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Templates/
                partialRootPath = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Partials/
                layoutRootPath = EXT:itawebtoolkit/Resources/Private/Extensions/powermail/Layouts/
        }
}

Thanks for your attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment