[Typo3] Tempavoila: how to modify Document Header

Patrick Rodacker rod at biba.uni-bremen.de
Fri Feb 11 16:25:37 CET 2005


Hi Christoph,

Christoph Kammermeyer wrote on 11.02.2005 15:43:

> Thanks but this is not exactly what I meant. I'll try to be more specific.
> I have a marker in my heder:
> <style type="text/css">
> .bg {
>  background-attachment: fixed;
>     /* <!-- ###t3cssbgpic### begin --> */
>  background-image: url(img/schmuckpic.jpg);
>     /* <!-- ###t3cssbgpic### end --> */
>    background-repeat: no-repeat;
>  background-position: right bottom;
> }
> </style>
> before using TV, this was used to change te background image. Can the same 
> procedure be used with TV?

Yes.

> It seems that I can only map parts whithin the 
> body tag and not within the head.

Thats correct AFAIK .

> Also with TV the MetaTags defined in the PageHeader are not included in the 
> document header. How can this be solved? 

Locate your main TemplaVoila Template Object using the list module. Open 
the context menu by clicking on the icon and select the entry 
TemplaVoila. This should bring up the screen where you can add parts 
from the HTML header. Select the parts you want to insert.

You add some text as headerData manually to the page object combinded 
with some constants definitions where the url of the image is set in 
dependance on conditions:

Constant field in your TS Tempate:

[condition1]
imageUrl = img/schmuckpic1.jpg
[condition2]
imageUrl = img/schmuckpic2.jpg
[global]

Setup field of your TS Template, where you refenrence the constant by 
using {$imageUrl}

yourPageObject.headerData.1 = TEXT
yourPageObject.headerData.1.value {
	<style type="text/css">
		.bg {
		background-attachment: fixed;
		background-image: url({$imageUrl});
		background-repeat: no-repeat;
		background-position: right bottom;
		}
	</style>
}

Have a look at TSRef and search for constants, headerData, conditions, etc.

I hope this is helpful.

Regards
Patrick

-- 
------------------------------
Patrick Rodacker

Bremen Institute of Industrial Technology and Applied Work Science
(BIBA) Hochschulring 20 D-28359 Bremen, Germany
http://www.biba.uni-bremen.de

Project EVIGeM
http://www.evigem.com

Tel.: +49 (0) 421 218 55 74
E-Mail: rod at biba.uni-bremen.de
------------------------------



More information about the TYPO3-english mailing list