[TYPO3] background image

m.heidari at armanpaya.com m.heidari at armanpaya.com
Wed Feb 15 08:21:29 CET 2006


Quoting Bjarne HELLIGSOE <bjarne.helligsoe at tiscali.fr>:

> Hi,
>
> I have made my templates as described in the follwing document:
> http://typo3.org/documentation/document-library/doc_tut_templselect/
> (Modern Template Building, Part 1)
> And I have inserted the following code to my templates. Every time I want to
> change background images I changes the filename, and the background change
> in my column2.
>
> *************code before***************
>
> temp.pageStyle = TEXT
> temp.pageStyle.value = background.jpg
> temp.pageStyle.wrap = TD.Column2{background-image:
> url(fileadmin/template/main/images/|);}
>
> *************code in between***************
>
> # Main TEMPLATE cObject for the HEAD
> temp.headTemplate = TEMPLATE
> temp.headTemplate {
>    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
>  template =< plugin.tx_automaketemplate_pi1
>    # Select only the content between the <head>-tags
>  workOnSubpart = DOCUMENT_HEADER
>  subparts.DOCUMENT_STYLE < temp.pageStyle
> }
>
> ************* code after this***************
>
> NB!
> In my stylesheet for column2 I have the follow styles:
>
> TD.column2 {
> background-position:top left;
> background-attachment:scroll;
> background-repeat:no-repeat;
> }
>
> But I think it is a good idea to take a good look in the Modern Template
> Building, Part 1
>
> Regards, Bjarne
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
Hello,

your method is very good but i want to change jpg file for every page and get
name of image from data base i don't know how can i get thsi value.
temp.pageStyle.value = background.jpg

Thanks vey much for guidance




More information about the TYPO3-english mailing list