DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Show Image From Page Properties (Headerimage)

06.07.2006
| 6344 views |
  • submit to reddit
        Note:
1. Set the page type to 'advanced'
2. Upload an image in the page properties/Field 'Files'

# HEADER IMG

temp.headerimg = IMAGE
temp.headerimg {
  //default image
  file = fileadmin/template/img/headerimg/darts.jpg
  
  // override it with an image inserted in page properties in field
  file.import.data = levelmedia: -1, "slide"
  file.import = uploads/media/
  file.import.listNum = 0
  file.import.override.field = media
  
  border = 0
  altText = xy
  titleText = xy

}

page.10 < temp.headerimg