Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Blog Comment Moderation Comment_Edit.aspx : How to show Blog comment Post Title View modes: 
User avatar
Member
Member
perezj-gmail - 11/29/2010 10:42:17 AM
   
Blog Comment Moderation Comment_Edit.aspx : How to show Blog comment Post Title
In the CMS Desk, How can I show the Post Title when editing Blog Comments? The Comments List or Comment Edit Page does not tell me to what blog post does the comment belongs to. I check the Table Blog_Comment which captures the Post Document ID Foreign Key Id but the controls out of the box do not show this.

Do I need to manually edit the control BlogCommentEdit.ascx and Get the FK ID for the Post Document ID? What about showing the Post Title in the List. Looks like there are changes in the Comment_List.xml to set the columns but it will just show the Post ID.

I would like to show the Post Title in the Comment List and in the Comment Edit page.

Thanks

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/13/2010 1:57:28 AM
   
RE:Blog Comment Moderation Comment_Edit.aspx : How to show Blog comment Post Title
Hello.

If you want only to show blog name to which current blog comment belongs, and you want to do it in "Edit comment" dialog, I believe there is a simpler way. You can put Label control on /CMSModules/Blogs/CMSPages/Comment_Edit.aspx and write following code in Page_Load method in code-behind:

// Get parent blog            
TreeNode blogNode = BlogHelper.GetParentBlog(commentObj.CommentPostDocumentID, true);

<Label control ID>.Text = blogNode.DocumentName;


Best Regards,
Radek Macalik

User avatar
Member
Member
perezj-gmail - 12/13/2010 8:05:18 AM
   
RE:Blog Comment Moderation Comment_Edit.aspx : How to show Blog comment Post Title
Thanks for your response. I want to show the blog POST title. But I get the point.