Taxonomies , add field to the TermPart

Topics: Writing modules
Oct 29, 2011 at 5:37 PM

Can't add text field to the term part in which I wanna save in some external data , I have tried many ways but I can't set it to the exact term Im creating thru code , this way

var term = _contentManager.New<TermPart>(taxonomy.TermTypeName);

term.TaxonomyId = taxonomy.Id;

but trying to add the text Field this way isn't working:

_contentDefinitionManager.AlterPartDefinition(term.Name,cfg=>cfg.WithField(typeof(TextField).Name).Named("Old"));

if any suggestions , I will be thankful 



Oct 30, 2011 at 12:33 PM

Done!