title: How to read Sitecore Datasource in a sublayout
body: <p>I have a sub-layout which has a datasource pointing to the data needed for that sublayout to render and I am reading that in fine via</p>
  
  <pre><code>Sitecore.Context.Database.GetItem(this.DataSource)
  </code></pre>
  
  <p>However one of the fields for this data is itself a datasource allowing the editor to set the location of where news items reside. </p>
  
  <p>So they first add the sublayout and set its datasource which defined the details of the rendered panel: title, icons, colours etc but equally a field is held to set the source of where the articles are kept - this way the sublayout can be used multiple times on page but each set to a different content node.</p>
  
  <p>I therefore need my .cs to obtain the value of this "datasource field" so I can then iterate through each of the news items in that defined location to render links to the articles.</p>
  
  <p>To confirm, that field is a DATASOURCE type - hope this makes sense.</p>
  
  <p>Thanks</p>