[TYPO3] background image

m.heidari at armanpaya.com m.heidari at armanpaya.com
Tue Feb 14 12:03:07 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
>

Thanks very much for answer.
I insert this part in html file :

<style type="text/css">
.outside {
   background-image: url('<!--###
bgImage###--> <!--###bgImage###-->');

background-repeat: no-repeat;
   width: 223px;
   }
<style>
now i don't know how i get the path of image.the image is save in data base.





More information about the TYPO3-english mailing list