[TYPO3] Sub-Templates?

JoH info at cybercraft.de
Sun Jul 23 22:52:49 CEST 2006


> Ah, I have one final question - to the method JoH explained, how can I
> include a property for a link on the banner?  I want visitors to be
> able to click the banner of whichever site they are on and go to the
> homepage or the corresponding site they are in.  Is this possible?  I
> am sure it would take a few more lines no?

Not just a few more lines, but a few more completely different lines.
The current solution only changes some CSS values in the page's head
section.
If you want links, you have to change the HTML source and since you will be
changing it already you can remove the CSS solution completely and replace
it with a simple image tag wrapped with a link.

You need an additional marker at he place where you want the banner to
appear.
This can be replaced with a similar piece of typoscript as posted before.
But in this case you want to use IMAGE and not IMG:_RESOURCE.
Together with the IMAGE element there's imageLinkWrap, and this will help
you to create the link with typolink.

Maybe you try them using the TSref and come back here again, if you are
running into trouble.
IMHO it could be a good solution to use the field for header links the same
way you are using the media field now. Just insert the corresponding link at
the "master page" of each section and it will be active for all subpages
too.

Good luck ;-)

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com





More information about the TYPO3-english mailing list