[TYPO3-english] Import files from DAM
Filippo Peverelli
fpeverelli at gmail.com
Wed Aug 26 06:06:26 CEST 2009
Hi,
I normally use this code to import in my template a file (image or swf) that
is stored in "page properties"->"resources"->"file"
Now I'd like to modify it to work with DAM.
temp.content = COA
temp.content{
10 = COA
10 {
wrap = <div class="headerimage">|</div>
10 = LOAD_REGISTER
10 {
fileType {
data = levelmedia:-1
listNum = 1
listNum.splitChar = .
}
}
20 = CASE
20 {
key.data = register:fileType
#image
default = IMAGE
default {
file {
import = uploads/media/
import.data = levelmedia:-1
import.listNum = 0
}
}
#swf
swf = TEXT
swf {
dataWrap = <object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="582" height="157" id="AgieHeadMedia" align="middle"><param
name="wmode" value="transparent" /><param name="allowScriptAccess"
value="sameDomain" /><param name="movie"
value="uploads/media/{levelmedia:-1}" /><param name="quality" value="high"
/><param name="bgcolor" value="#ffffff" /><embed
src="uploads/media/{levelmedia:-1}" quality="high" bgcolor="#ffffff"
width="582" height="157" name="AgieFlashHeader" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"
/></object>
}
}
30 = RESTORE_REGISTER
}
}
Could you please help me?
Thanks a lot,
Filippo
More information about the TYPO3-english
mailing list