[TYPO3] how to alter image using typoscript ?

J.Bakshi joydeep at infoservices.in
Tue Jan 29 11:03:37 CET 2008


Thanks Benjamin for your kind response.
I must try the technique and let you know.

with best regards,



Benjamin Todd wrote:
> Hi Joydeep,
>
> I use the alias name to change an image on pages (requires you to have
> seo urls setup).
>
> E.g. for adding an image to the element's background:
>
> ------------------------------------------------------------------------
> -
> # Set the header image according to the alias name
> page.headerData.44 = TEXT
> page.headerData.44.data = page:alias
> page.headerData.44.wrap = <style type="text/css">h1 { background-image:
> url(/fileadmin/templates/images/|.jpg)!important; }</style>
> ------------------------------------------------------------------------
> -
>
> If you want an image as a <img>, you could map to an image in your
> template and do the same sort of thing, using a HTML content object.
>
> With the above done, you just need to name your images the same as the
> alias.
>
> HTH,
>
> Ben
>
> ------------------------
> Benjamin Todd
> Web Developer
>  
> b.todd at emnet.co.uk
> EMNET, PO Box 559, Nottingham, NG1 3LB
> Tel:  +44 (0)115 956 8260
> Fax: +44 (0)115 956 8264
>  
> www.emnet.co.uk
> Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
> Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS
>  
> www.emnetsolutions.co.uk
> Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
> office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS
>
> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of
> J.Bakshi
> Sent: 29 January 2008 06:43 AM
> To: typo3-english at lists.netfielders.de
> Subject: [TYPO3] how to alter image using typoscript ?
>
> Dear list,
>
> I am searching for such an typoscript which can alter the image
> automatically based on link. Here is the actual scenario.
> at the left pane I have links of different pages . At the corner of the
> right there is a .jpg image. For each and every link at the left pane I
> like to display different .jpg image at the right corner.  Is it
> possible to implement with typoscript ? if yes then could any one kindly
> suggest how ?
>
> thanks
>
>   


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the TYPO3-english mailing list