Hi,
I added a document type for comment on news article, i added it in the admin area, and can list all comments for news. But have problem to add comment on frontend, i try the help for adding new doc type
http://www.kentico.com/docs/devguide/index.html?customizing_the_administration.htmbut nothing happend, the comment is not added my code is
protected void btnAddComment_Click(object sender, EventArgs e)
{
CMS.TreeEngine.TreeProvider provider = new CMS.TreeEngine.TreeProvider(CMS.CMSHelper.CMSContext.CurrentUser);
CMS.TreeEngine.TreeNode parent = provider.SelectSingleNode(CMS.CMSHelper.CMSContext.CurrentSite.SiteName, CMS.CMSHelper.CMSContext.CurrentAliasPath.ToString(),CMS.CMSHelper.CMSContext.GetCultureClass().ToString());
CMS.TreeEngine.TreeNode node = new CMS.TreeEngine.TreeNode("cms.comment",provider);
if (parent != null)
{
node.NodeName ="fsf";
node.NodeAlias = "fsf";
node.SetValue("Name", "test");
node.SetValue("City", "test");
node.SetValue("Text", "test");
node.Insert(parent.NodeID);
}
}