Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6792387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:57:47+00:00 2026-05-26T17:57:47+00:00

When use Kentico for a Blog with Comments, it has the following fields: Name

  • 0

When use Kentico for a Blog with Comments, it has the following fields:

  • Name
  • E-mail
  • Your URL
  • Comments

But I want to use the current authenticated user’s name, and don’t need the E-mail or Your URL options.

On one-off pages, we can use CSS to set the fields to display:none by their HTML IDs, but that won’t work for Blogs because the IDs will change often since they are generated by ASP.NET based on the control tree.

Is there a way to hide these fields by configuring the BlogComments web part (we can’t find any settings in there for them), or do we have to replace the BlogComments web part with custom code?

UPDATE: Looks like you can’t do this without customizing code (see accepted answer below), at least in v5.5 R2 and older; maybe not in v6 either? Vote for the feature suggestion to add it at to a future version of Kentico in this Kentico UserVoice request.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:57:48+00:00Added an answer on May 26, 2026 at 5:57 pm

    We looked into the web part code, and Kentico 5.5 does not offer the ability to customize them via web part properties, nor even with a custom web part since the blog module doesn’t even offer it. So we did this:

    1. Copied ~/CMSModules/Blogs/Controls/BlogCommentView.ascx and ~/CMSModules/Blogs/Controls/BlogCommentEdit.ascx and renamed them
    2. Updated the codefile/inherits attributes in those new files to use custom class names and for the ...View.ascx to reference the new ...Edit.ascx
    3. Changed our new ...Edit.ascx‘s @Register Src="..." attribute to point to the new ...Edit.ascx
    4. Set style="display:none" on the <tr> rows that we just wanted to use the defaults. (This site required authentication already, so the user’s name was already filled into the Name field, and the E-mail and URL fields aren’t used in our case so it didn’t matter what was in them since we didn’t require the E-mail field per the Blog settings.)
    5. In the original web part we created on our customized Portal template, changed the Layout to a new, custom Layout that points to the new ...View.ascx:

    The new Layout code that just changed the Src attribute in the @Register element:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/CMSWebParts/Blogs/BlogCommentView.ascx.cs" Inherits="CMSWebParts_Blogs_BlogCommentView" %>
    <%@ Register Src="~/CustomBlogCommentView.ascx" TagName="BlogCommentView" TagPrefix="cms" %>
    
    <cms:BlogCommentView ID="commentView" runat="server" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Use case: we have some project meta-data files which we want tracked, but are
use this website a lot but first time posting. My program creates a number
Use case: I've just entered insert mode, and typed some text. Now I want
use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->get( $url ); say $mech->text; How could I
We use Kentico CMS and I've exchanged emails with them about a web garden
use warnings; use Test::More; use File::Find::Rule; use Test::File::Find::Rule; my $rule = File::Find::Rule->file->name('*.pl')->not_grep(qr/^\s*use\s+strict;/m, sub {
Use case: You have 2-3 files displayed in your MacVim window(s). You press ctrl+Q
Use default: <input type=radio name=restype value=resdef onfocus=document.getElementById('resupload').disabled = true; document.getElementById('resadres').disabled = true; checked=checked /><br
use PHP and MySQL and want to use SELECT statement which date_post(datetime variable) start
Use Html element SELECT in aspx page like: <SELECT id=MySelection name=MySelection runat=server DataValueField=ID DataTextField=Name></SELECT>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.