Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skinning the search box (submit button as image not working; how to css the textfield)Skinning the search box (submit button as image not working; how to css the textfield)
Previous
 
Next
New Post
2/13/2009 3:46 AM
 

I tried to skin the DNN site search with the following code in my skin.xml (I decided to skin in DNN4.x compatibility):

<Object>
    <Token>[SEARCH]</Token>
    <Settings>
      <Setting>
        <Name>Submit</Name>
        <Value>
          <img src="images/btn_submit.gif" />
        </Value>
      </Setting>
      <Setting>
        <Name>showWeb</Name>
        <Value>False</Value>
      </Setting>
      <Setting>
        <Name>ShowSite</Name>
        <Value>False</Value>
      </Setting>
    </Settings>
  </Object>

While disabling the web- and site search radio buttons (showWeb and showSite) is working fine, the search box is still showing a "search" text label instead of my image button.

 

Second I would like to change the style of the search text field itself. I am fine with the css formatting, but which is the correct file to place my css formatting in (also speaking of a good file organization)?

 
New Post
2/16/2009 6:13 AM
 

Okay, I was able to fix that problem: Any HTML in the XML file has to be wrapped into a CDATA statement:

<Setting>
        <Name>Submit</Name>
        <Value><![CDATA[<img src="images/btn_submit.gif" border="0" alt="Search" />]]>         </Value>
      </Setting>



 

I was also able to format the search text box by adding the following to my skin.css:

.NormalTextBox
{
    border:1px solid #999999;
    background: #fff;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 100.00%;
}


Now does anyone know how I can place my search button image that it is aligned with the search input text box?

 

 

 
New Post
3/4/2009 2:29 AM
 

Hi!

You just have to add the align settings to the picture in You XML file... 

i.e.  <Value><![CDATA[<img src="images/btn_submit.gif" border="0" vertical-align="middle" alt="Search" />]]> </Value>

/Jari

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skinning the search box (submit button as image not working; how to css the textfield)Skinning the search box (submit button as image not working; how to css the textfield)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out