[Typo3] TS:IMG_RESOURCE + LOAD_REGISTER
Nikolas Hagelstein
hagelstein at hauptsache.net
Wed Dec 14 11:04:36 CET 2005
Hi,
I need to remember the tmpname of an image
for later use in common with JS.
I am using TV and because a FCE field's
scope is limited to itself i have to store
the IMG_RESOURCE to TSFE->register(Load Register).
img1_big= IMG_RESOURCE
img1_big {
file.import = uploads/tx_templavoila/
file.import.current = 1
file.import.listNum = 0
file.maxW = 415
file.maxH=294
}
5=LOAD_REGISTER
5.img1_big<img1_big
After that my TSFE->register looks like this:
Array
(
[SYS_LASTCHANGED] => 1134490343
[count_HMENU] => 2
[count_HMENU_MENUOBJ] => 2
[count_menuItems] => 2
[count_MENUOBJ] => 9
[img1_big] => IMG_RESOURCE
)
fine, but i do not know how to create an object
to work with from {register:img1_big}.
Storing just the name instead of the whole img_ressource
would be sufficient for my needs.
If anyone could provide more information on how to
work with IMG_RESOURCE i could work it out on my own.
At the moment i am using something like this:
10<img1_big
10.stdWrap.wrap = <img src="|"name="gross" />
Any ideas?
Cheers,
Nikolas
More information about the TYPO3-english
mailing list