[Typo3] Two different HTML templates for the same plugin
SwiftLizard (Chris Wittmann)
chris at swift-lizard.com
Sat Feb 5 02:56:43 CET 2005
Hi ,
perhaps you should do it this way:
Constants:
templateFile = local.html
[globalvar: GP:Yourvar=Something]
templateFile = foreign.html
[global]
Setup
tspathto.plugin.template = {$templatefile}
look up what the string is to set the thml Template in the extension (by using extension manger)
should be something like setup.txt
chris
Jogvan Olsen schrieb:
> I use the 'Address Directory (sp_directory)' to display addresses on two
> different pages - one page for local addresses and one page for non-local
> addresses.
>
> I want different layout on these pages, so I want to use two different html
> templates for the plugin on these pages.
>
>
>
> Address Page 1 <-- I want this page to use the 'local.html' template
>
> Address Page 2 <-- I want this page to use the 'foreign.html' template
>
>
>
> I suppose it can be done by putting something like this in TSconfig on the
> page:
>
> plugin.tx_spdirectory_pi1.templateFile = fileadmin/template/sub/foreign.html
>
> but I can't get it to work.
>
>
>
> Can somebody help me with this little problem?
>
>
>
> Thanks in advance
>
> Jogvan
>
>
More information about the TYPO3-english
mailing list