[TYPO3-english] typoscript image from parent page
Rimbu Mircea
rmircea at birotec.ro
Fri Oct 5 10:55:12 CEST 2012
thank you Bernd
I try your suggestion and I can grab the image but I don't know
how to replace the image in the record with this image .
I already have a lot of text with images in my pages and I try
to change the image only in the topbox record (text w image type)
and I don't know how to change this specific image with typoscript.
Something like this :
if header of record is topbox -> change image with one from the parent
resource/media field.
Mircea
On 04/10/2012 15:18, bernd wilke wrote:
> Am 04.10.2012 13:52, schrieb Rimbu Mircea:
>> Hello
>>
>> The requirement was changed to get the image from parent (Page
>> information) tab page/resources/media
>> and propagate this image down on all child pages in topbox element.
>> this topbox is in Content Normal column and TV is not used.
>> Is this posible with typoscript ?
>
> temp.headerPic = IMAGE
> temp.headerPic {
> typolink.parameter = (id of homepage)
> file {
> import.data = levelmedia: -1,slide
> import = uploads/media/
> import.listNum = 0
> }
> }
> }
>
> if you render your logo with it use the line with typolink.parameter,
> otherwise skip it. you may scale or modify the image like possible in
> typoscript (see TSRef)
>
> with this configuration the first (listNum=0) image is used. if no
> image is given in the current page the page above (and above ...) is
> searched ('levelmedia: -1,slide').
>
> as usual you may use this temp object somewhere in your page definition
> either inside some COA or as marker replacement
>
> bernd
--
S.C. Birotec S.R.L.
Mircea Rimbu
More information about the TYPO3-english
mailing list