Hi, I'm a newbie so sorry if this is a silly question.
I have created a Content Type, "Executive Team Member" which contains a Title, Body, is containable and Media Picker (Photo) field. I then created a list of these content types.
What I can seem to figure out is how to display the Media Picker field differently depending upon if it is displayed in a Summary or Detail. For example, on the list page where it will list each Executive Team Member, I want to display the photo field
small and on the left, while on the Detail page display it big and on the right.
I've tried using an alternate for the field but couldn't figure it out how to make it distinguish from the being in a Summary vs. Detail DisplayType. I tried using the Model to access the parent's Displaytype.
I need the end result is simply change a class
<div class="et-photo"><img src="@Href(Model.ContentField.Url)" /></div>
<div class="et-summary-photo"><img src="@Href(Model.ContentField.Url)" /></div>
So can I access the parent's DisplayType from within a field? Is there another way to do this?
Thanks in advance.