[TYPO3] dynamic page image + extract filename

Adam Harvie aharvie at msf.ca
Fri Jun 15 21:07:56 CEST 2007


Hi all,

I'm trying to construct a site where each page has an individual header 
image. I've used the Simple Page Header Selector plugin, and though the 
lack of documentation was troublesome, I eventually found and followed 
the instructions here:
http://www.mcuniverse.com/Changing-Section-Pictures.193.0.html

Those worked, and I've got the dynamic picture selection working. The 
problem is that the code inserts a full <img /> tag, and I'd rather just 
extract the path/image filename to use as a background property.

# Top Section Picture
temp.toppic = IMAGE
temp.toppic {
         file = fileadmin/sitepics/mcu_home_0704.gif
         file.import.data = levelmedia: -1, "slide"
         file.import = uploads/media/
         file.import.listNum = 0
         file.import.override.field = media
}
...

subparts.toppic < temp.toppic

Any tips?

-Adam Harvie


More information about the TYPO3-english mailing list