[TYPO3-ect] Your experiences with Smarty
Alexander Bergmann
chasm at chasm.de
Fri Mar 9 14:35:08 CET 2007
Hi Ernesto, hi group,
Ernesto Baschny [cron IT] schrieb:
> Please re-read my post. I don't want to change the only one
> templatePath, I want to be able to have a SEARCH-path of templates. This
> way I can keep using the extension developers templates but be able to
> overwrite them with some specific templates I have. Another way of
> setting this would be:
>
> templatePath = fileadmin/myext-templates,EXT:myext/templates
>
I've added such a feature to my variant of the rtp_smarty extension.
You can set a additional template path via TS for your extension.
plugin.tx_myext.smarty.templatePath = fileadmin/myext-templates
If a requested template file is not found there, the smarty extension
will try to find the file within the template path of the extension
itself, i.e. EXT:myext/templates
If the extension does not ship the templates it uses. ...Well this is a
problem that can not be solved by the smarty extension. ;)
What I did not saw is the need for more than one additional template
path, but this feature more can be added if nessesary.
Alexander
More information about the TYPO3-team-extension-coordination
mailing list