[Typo3] Two different HTML templates for the same plugin
Peter Russ
peter.russ at 4dfx.de
Fri Feb 4 13:18:35 CET 2005
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
>
>
Check for CONDITION in the manual and set a CONSTANT depending on the
page id. Then SETUP this constant to the template like
plugin.mypluging.template.file={$constant}
Or set it directly in the TS of the page.
Regs. Peter
More information about the TYPO3-english
mailing list