Discussion:
[TYPO3] Typoscript to render images from Media field
Ronald Renfro
2007-11-26 20:19:35 UTC
Permalink
Hi,

I need a little help with displaying/rendering images from the page
media field. I would like to render all images that are defined but I
do not know how to dynamically set the file property of the IMAGE
cObject.

Thanks!
---

this is my current typoscript:

QUOTES = COA
QUOTES {

10 = COA
10 {

20 = TEXT
20 {
data = levelmedia : -1 , slide
split {
token = ,
cObjNum = 1

1 = IMAGE
1 {
current = 1
file = (HOW can I insert uploads/media + current item here?)
wrap = |
}

}
}

}

wrap = <div id="quotes">|</div><br clear="all">
}
JoH asenau
2007-11-26 23:20:48 UTC
Permalink
Post by Ronald Renfro
I need a little help with displaying/rendering images from the page
media field. I would like to render all images that are defined but I
do not know how to dynamically set the file property of the IMAGE
cObject.
QUOTES = COA
QUOTES {
10 = COA
10 {
20 = TEXT
20 {
data = levelmedia : -1 , slide
split {
token = ,
cObjNum = 1
1 = IMAGE
1 {
current = 1
^^^^
remove this line
Post by Ronald Renfro
file = (HOW can I insert uploads/media + current item here?)
file.import = uploads/media/
file.import.current = 1

should do the job

HTH

Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com
Ronald Renfro
2007-11-26 23:36:47 UTC
Permalink
Thanks Joey! It works like a charm!

Loading...