Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CS 2.0 HowTo: Hide the gray Comment Notification Box

The question was asked in CS Forums today, "How do you hide the gray 'Comment Notification' Box?" The Comment Notification box the user was referring to is the message that appears on blog posts that lets users subscribe by RSS to post updates or receive updates to the post by email.



This is a nifty little feature in CS, though I've never used it and don't know of anyone who has, not on personal blogs anyway.  This function probably has more value in a corporate environment.

I toyed around on my new CS 2.0 Demo site (that thing is really coming in handy) and concluded that the best way to remove the Comment Notification box was to comment out the DetailPostSubscription control in Skin-EntryViewContainer.ascx in the Themes that support it.

Funny when I posted the answer on Forums, the colon-D was converted to a Smiley.  I hope the individual asking the question didn't think I was joking around.  I never joke about Themed CS Controls.



[tags: Community Server]

Comments (4) | Post RSS RSS comment feed

Posted on 5/17/2006 9:16:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (4) -

5/18/2006 4:30:40 AM Permalink

Hiding it via still means the control is rendered on the client. Even worse would be a case where the skin file also contained it's own since you would now likely have some weird rendering issues.

In most cases, you can safely delete a control like DetailedPostSubscription from the page/control and CS will simply skip it.

HTH,
Scott

Scott |

5/18/2006 6:29:26 AM Permalink

Scott, you're right.  I was confusing the removal of a usercontrol with a removal of a ListItem, Literal or some asp:control or cs:control within a usercontrol.  I'll update the Forums reply.  Thanks!

daveburke |

5/27/2006 4:19:18 PM Permalink

You can also remove it by using an ASP.NET comment:
<%!--   and     --%>
Thus causing the control to not even be rendered by the asp.net. Although if there is any code referencing that control, you will now get a compilation error. Sometimes I have to fallback on adding runat="server" and Visible="False" to any tag. Pretty universally, this will cause the tag to not be sent to the client, but you're still incurring any related processing time on the server.

Eric |

7/18/2006 1:23:28 PM Permalink

I am trying to remove the gray Comment Notication box as well...however I don't see a Themes/Skin-EntryViewContainer.ascx  file to edit.

What else am I missing? I'd appreciate any help. Thanks.

Alan
alan@todaysteacher.com

Alan |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke