Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > searh question View modes: 
User avatar
Member
Member
davef-helixpoint - 7/2/2010 1:21:36 PM
   
searh question
How do I remove the text "Search for:" from the search box

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/7/2010 4:38:44 PM
   
RE:searh question
Hello,

You will need to modify the webpart layout. The easiest way is doing that directly on the Design tab in the webpart properties where you can switch to Layout tab and create new layout. This will allow you to modify it and you can set Visibility property of the Localized label control to false like this:

<cms:LocalizedLabel DisplayColon="true" ID="lblSearch" runat="server" AssociatedControlID="txtWord" EnableViewState="false" Visible="False" />


When you save it (click OK) the label should turn invisible.

Best regards
Ondrej Vasil

User avatar
Member
Member
Armysniper89 - 8/30/2010 9:35:02 AM
   
RE:searh question
I have a similar request, I want to remove the : after the label. When I create a layout for the Search Box web part I get this:


<%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/CMSWebParts/Search/cmssearchbox.ascx.cs"
Inherits="CMSWebParts_Search_cmssearchbox" %>
<asp:Panel ID="pnlSearch" runat="server" DefaultButton="btnImageButton" CssClass="searchBox">
<asp:Label ID="lblSearch" runat="server" AssociatedControlID="txtWord" EnableViewState="false" /><asp:TextBox
ID="txtWord" runat="server" /><cms:CMSButton ID="btnGo" runat="server" OnClick="btnGo_Click"
EnableViewState="false" /><asp:ImageButton ID="btnImageButton" runat="server" Visible="false"
OnClick="btnImageButton_Click" EnableViewState="false" />
</asp:Panel>




How do I change the label to not display the appended ":" character? I did not include that in the label property of the control. You show <cms:LocalizedLabel> I do not have that control? Can I add that instead of the one there?

User avatar
Member
Member
Armysniper89 - 8/30/2010 9:41:48 AM
   
RE:searh question
I figured it out. I was looking at the wrong search box control (I had the SQL version up). Works as advertised!