On 03/22/2010 09:42 PM, Gerritjan Koekkoek wrote: > Hi I need to assign a blog category to my document created by code? > > def vCategory = "Informatie" > vObjArticle.set("category",vCategory) > > category is a special typed-attribute in BlogPostClass object of type > "database tree" > I have defined the blog category "Informatie" through the category editor of > the blog application > but after saving the document and inspecting the object it does not show > the tekst "Informatie", but it appears to be empty > > Is this the right way of setting such a attribute? If not, how to?
You should use not the category name, but the full name of the document holding the category (I think it should be Blog.Informatie). Can you try that? -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users