Individual Top-Picture for every Page stored in the resources of a Page

This TS i think is very useful if you want to have an individual picture on every page. The page-title is used as a Title or Alttag for the image and is displayed on the picture. This, sure can be changed. This TS loads the picture if it is placed in the resources of the (advanced) page in the page-properties. If no picture is found, the TS looks into the parent-page if it finds a picture there. This is called a slide and it slides as long as it finds a “mother-Page” with image placed in the resources of a page.

In the end, you only have to place a picture in the rootpage of your site and then the image inherits until there is a picture given to a page.

This is the setup for my “Graphical Header”:

lib.GHeader = COA
lib.GHeader {
20= IMAGE
#Alt-Tag for the image - in this case the pagetitle
20.altText.data=page:title
20.file = GIFBUILDER
20.file {
#size of the generated image
XY = 861,151
#qualitiy for the jpg
quality = 80
#format of the image
format = jpg
10 = IMAGE
#folder in which TYPO3 copies the images when selected in pageproperties
10.file.import = uploads/media/
#this is the slide-command which looks wether there is a picture in this page or not
10.file.import.data = levelmedia:-1,"slide"
#take the first picture in the resource list (0=first, 1=second...)
10.file.import.listNum = 0
#display the pagetitle on the image
20 = TEXT
20.text.data = page:title
20.fontColor = #000000
20.fontFile = fileadmin/fonts/verdanab.ttf
20.fontSize = 25
20.niceText = 1
20.offset = 13, 35
20.text.case = upper
}
}
  • Add to favorites
  • Facebook
  • Twitter
  • LinkedIn
  • del.icio.us
  • MisterWong
  • Technorati
  • StumbleUpon

No related posts.

Leave a comment

Your comment