Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
DocumentType dt = DocumentType.GetByAlias("publicStory");
User u = User.GetUser(0);
Document newStory = Document.MakeNew(story.Title, dt, u, parentId);
newStory.getProperty("contentTitle").Value = story.Title;
newStory.getProperty("tags").Value = "test";
'Tags' is the alias for a custom property of the built in type 'Tags'. But when I log in to the admin area te value isn't set. Any ideas? The 'contentTitle' field is being saved.
Covers it... http://our.umbraco.org/forum/developers/api-questions/14273-Adding-Data-To-Tags-DataType
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Can't set tag field with API
DocumentType dt = DocumentType.GetByAlias("publicStory");
User u = User.GetUser(0);
Document newStory = Document.MakeNew(story.Title, dt, u, parentId);
newStory.getProperty("contentTitle").Value = story.Title;
newStory.getProperty("tags").Value = "test";
'Tags' is the alias for a custom property of the built in type 'Tags'. But when I log in to the admin area te value isn't set. Any ideas? The 'contentTitle' field is being saved.
Covers it... http://our.umbraco.org/forum/developers/api-questions/14273-Adding-Data-To-Tags-DataType
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.