Remove fields from Blog comment box

Dcode warner asked on April 20, 2017 20:23

Is there a particular easy way to remove fields from the blog comments box area?

We don't need the default "website URL" text box field. Isn't there an easier way to remove this other than modifying the core files OR using CSS to display none. This is Kentico 7

Recent Answers


Rui Wang answered on April 20, 2017 22:02

It's easier to just modify the user control. Find \CMSModules\Blogs\Controls\BlogCommentEdit.ascx and the following is the control for the URL. Set them invisible.

    <tr>
        <td colspan="2">
            <div class="BlogCommentUrl <%=LiveSiteCss%>">
                <asp:Label ID="lblUrl" runat="server" AssociatedControlID="txtUrl" EnableViewState="false" />
            </div>
            <asp:Panel ID="pnlUrl" runat="server" DefaultButton="btnOk">
                <cms:CMSTextBox ID="txtUrl" runat="server" CssClass="TextBoxField" MaxLength="450" 
                    EnableViewState="false" />
            </asp:Panel>
        </td>
    </tr>
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.