Technical support This forum is closed.
Version 1.x > Technical support > CMS Control Labels/Button Text and Styles View modes: 
User avatar
Guest
norashlea - 4/2/2006 12:01:26 AM
   
CMS Control Labels/Button Text and Styles
Hello,

I'm trying to modify the text for the "GO" button on the CMSSearchDialog. In Kentico-CMS-CMSControls.resx, I've modified the Value entry for CMSSearchDialog.Go, but it is ignored. Have tried with some of the others in that file too, but my changes are always ignored. (I rebuild the project before running the site.)

I'm also trying to apply a style to the Go button on my CMSSearchDialog, but it is also ignored. I created the .CMSSearchDialog* set of styles in main.css (according to all the styles I can see in Firefox are applied to the control), but the CMSSearchDialogSearchButton style is ignored completely, and for all the others the only element that is applied is the font-size.

Regards,
Sharon

User avatar
Guest
admin - 4/3/2006 7:55:19 PM
   
Re: CMS Control Labels/Button Text and Styles
Hi Sharon,

Unfortunately, I cannot reproduce this error. If I modify the same file and restart the application (e.g. by modifying a saving the web.config file), the new text in the CMSSearchDialog control is displayed correctly (tested in 1.8c/VB 2005 version).

If you need to modify the style of the button, you need to use a style like this:

.CMSSearchDialogSeachButton
{
color: Blue;
}

(please note: there's a typo in the HTML code rendered by the control, we will fix it in 1.8d)

You can also set the text and style of the control by working with the Button control directly:

CMSSearchDialog1.SearchButton.Text = "Search now!";

Best Regards,

User avatar
Guest
norashlea - 4/3/2006 10:46:41 PM
   
Re: CMS Control Labels/Button Text and Styles
Thanks Petr.

The styles eventually began to display, but I still couldn't get the text to modify to the entry in the resx file, so have used the code in Page_Load, and it works perfectly now.

Regards,
Sharon