We are facing some issues while trying to create content instances using Vignette API. In our content type definition, there are a couple of relators and we need to set the values of some of the attributes inside those relators. We are able to create the contents by setting the values of the first level attributes, which are not inside any relator using the following code;
ContentType contentType = (ContentType) ObjectType.findByName(strContentType);
ContentInstance ci = (ContentInstance) contentType.newInstance();
ci.setAttributeValue("DASH-CONTENT-TITLE", "testContent");
ci.setAttributeValue("DASH-CONTENT-PORTAL-DIRECT-LINK", "0");
ci.setAttributeValue("DASH-CONTENT-KEYWORDS", "test");
ci.setAttributeValue("DASH-CONTENT-METADATA", "test2");
ci.setAttributeValue("DASH-CONTENT-MAIN-BODY", "testContent");
ci.setAttributeValue("DASH-CONTENT-OWNED-BY", "admin");
ci.setLogicalPath("/dashboard");
ci.commit();
CAN ANYONE SUGGEST A WAY TO SET VALUES INSIDE THE RELATOR?