[TYPO3] dynamic page image + extract filename
Christopher Torgalson
bedlamhotel at gmail.com
Fri Jun 15 21:29:01 CEST 2007
Hi,
On 6/15/07, Adam Harvie <aharvie at msf.ca> wrote:
> 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?
Change "temp.toppic = IMAGE" to "temp.toppic = IMG_RESOURCE".
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list