[TYPO3-english] How do you generate a menu where every menu item has its own image, using DAM?

François Suter fsu-lists at cobweb.ch
Wed Jul 11 21:53:47 CEST 2012


Hi Oliver,

> I'm working off of another menu on the site which a previous dev
> created, so it might still be incomplete or ugly :P

In my case I have this code in a somewhat different place, maybe it's 
worth a try, see if it makes a difference:

tt_content.menu.20.1.1.IFSUB.before {
	cObject = IMAGE
	cObject {
   		file {
   			import.cObject = USER
			import.cObject {
				userFunc = tx_dam_pages->get_media_file
				listNum=0
  				slide = 1
			}
		}
	}
}

(it's a modification of a sitemap). In you case, it would be placed at:

NO.before

instead.

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-english mailing list