How to display taxonomy term's field in a menu

Dec 31, 2013 at 3:31 PM
Hi, I am trying to make a "mega menu" which will include an image in the main navigation for my website "Accessories" tab. It is a taxonomy menu item and has terms of Vehicles (eg. Vehicle A, Vehicle B, Vehicle C...), now I need to display the vehicle image in the menu as well.

The way I am trying is to customize the taxonomy (Accessories) term and add an image field named "Image", but I am struggling to get it image displayed in the menu. Anyone shad me some light? Thanks.

Mar 11, 2014 at 1:36 AM
I've implemented something similar like this.

Here I have a content type "Athlete" which contains a taxonomy field named "Sport" whose terms contain a media picker field named "Image".

<div style="background-image:url(@Url.Content(_athlete.AthleteInfoPart.Sport.Terms[0].Image.Url))">