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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...