Cloned items in Sitecore missing fields

While looping through the item.Fields collection for a cloned item only the Sitecore standard fields showed up.

After quite a bit of googling I finally found this:

http://sitecoreblog.alexshyba.com/2009/01/friday-gotcha-sitecoredataitemsitemfiel.html

Turns out you need to call Fields.ReadAll() to get a complete collection of fields and values for the Item.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>