[Typo3] Banner change according with menuitem
Gideon So
gideonso at livingwater.org.hk
Tue Jul 19 04:50:07 CEST 2005
Hi Olaf,
It's a great help. Where do you find about this in the tsbyex and
tsref?? I couldn't find it anywhere. Please point me to it. Thanks.
Gideon
>
>
> Hi,
> I had to change a logo for different submenus and solved it with this
> script in the constants area:
>
> [PIDinRootline = 1]
> tmpLogo = fileadmin/images/logo_dummy.gif
> [PIDinRootline = 5]
> tmpLogo = fileadmin/images/logo_opel.gif
> [PIDinRootline = 3]
> tmpLogo = fileadmin/images/logo_peugeot.gif
> [PIDinRootline = 4]
> tmpLogo = fileadmin/images/logo_saab.gif
> [PIDinRootline = 2]
> tmpLogo = fileadmin/images/logo_hyundai.gif
> [PIDinRootline = 82]
> tmpLogo = fileadmin/images/logo_nissan.gif
> [global]
>
> in the setup you can reference the Image like this:
> ...
> marks {
> MENU_LOGO = IMAGE
> MENU_LOGO.file = {$tmpLogo}
> }
> This means that your template should have a marker named MENU_LOGO (or
> whateveryoulike)
> There is another way with the Storage Folder; its all in tsref and tsbyex.
>
> hope this helps
>
> Olaf
More information about the TYPO3-english
mailing list