[TYPO3-english] How do you generate a menu where every menu item has its own image, using DAM?
fsu-lists at cobweb.ch
Wed Jul 11 23:05:27 CEST 2012
> My earlier attempts all gave similar results. There is simply no uid
> passed into it, so it defaults to the current page id:(
I took a bit of time to reproduce locally the setup I had at the time I
used this and it's not working for me either anymore.
Toying a bit further I remembered using a function straight from the DAM
for this. And indeed it can work, but only if you have a single file
referenced. Try using:
NO.before.cObject.file.import.cObject = USER
userFunc = tx_dam_tsfe->fetchFileList
refTable = pages
refField = tx_dampages_files
If you have several files, the DAM method will return them in a single
string, comma-separated. So it's still probably possible to work it out,
by working some more TS magic using split in a further stdWrap.
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-english