title: Accessing a contentpicker field value in Orchard
body: <p>So I am using a Content Picker to display a list of selected items, and by default the out put looks like this:</p>
  
  <blockquote>
    <p>Testimonial: View, View</p>
  </blockquote>
  
  <p>But I would like it to actually show the parts of the ContentItem. This is the code that loops through the items:</p>
  
  <pre><code>@using Orchard.ContentPicker.Fields
  @using Orchard.Utility.Extensions;
  
  @{
      var field = (ContentPickerField) Model.ContentField;
      string name = field.DisplayName;
      var contentItems = field.ContentItems;
  }
  
  &lt;p class="content-picker-field content-picker-field-@name.HtmlClassify()"&gt;
      &lt;span class="name"&gt;@name:&lt;/span&gt;
      @if(contentItems.Any()) {
          foreach(var contentItem in contentItems) {
              &lt;span class="value"&gt; @Html.ItemDisplayLink(contentItem)&lt;/span&gt;
              if(contentItem != contentItems.Last()) {
                  &lt;span&gt;,&lt;/span&gt;
              }
          }
      }
      else {
          &lt;span class="value"&gt;@T("No content items.")&lt;/span&gt;
      }
  &lt;/p&gt;
  </code></pre>
  
  <p>I've tried several different ways of accessing the data but usually end up with warnings saying that it does not contain a reference, or that it can't convert it to a string.</p>
  
  <p>I know that on the actual page for these items, they're in Model.ContentPart.Quote.Value</p>
  
  <hr>
  
  <p><strong>Edit</strong>
  I think the problem I am having is that I on the main page, I can't go to Models.Content.Quote or anything similar to access the data because its not listed on this page. The only data about each Quote thats listed is the ID.</p>