This project is read-only.

Access part on content item through code

Topics: Core, General, Writing modules
Mar 18, 2013 at 4:13 PM
Hi All,

I have created a content item with using migrations, to this i have added a part which contains a LinkField, code below...
           // define common Link Text Field
                , b => b
                    .WithField("Link", cfg => cfg.OfType("LinkField").WithDisplayName("Link"))

            ContentDefinitionManager.AlterTypeDefinition("QuadLeftLinks", type => type
Now what I want to do is be able to create the content type (which I can do), but I cannot figure out how to access and populate the LinkField values

Any pointed gratefully received!
Mar 19, 2013 at 1:06 AM
Mar 19, 2013 at 4:33 PM
Ah thank you, it was dynamics bit I forgot.