[TYPO3-english] typoscript image from parent page

bernd wilke t3ng at bernd-wilke.net
Thu Oct 4 14:18:48 CEST 2012


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
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list