Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian 32 posts 82 karma points
    Feb 05, 2013 @ 15:44
    Ian
    0

    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.

  • Ian 32 posts 82 karma points
    Feb 05, 2013 @ 16:52
  • 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.

Please Sign in or register to post replies