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, ...How to replace How to replace 'Search' with an image?
Previous
 
Next
New Post
2/12/2008 12:11 AM
 

I'd like to replace the 'Search' link that appears to the right of the search input box with an image of magnifying glass.

I have the following lines in my skin.xml file, but the 'Search' link still appears and the image does not appear:

  <Object>
    <Token>[SEARCH]</Token>
    <Settings>
      <Setting>
        <Name>showWeb</Name>
        <Value>False</Value>
      </Setting>
      <Setting>
        <Name>ShowSite</Name>
        <Value>False</Value>
      </Setting>
      <Setting>
        <Name>Submit</Name>
        <Value><![CDATA[<img src="/Portals/0/images/search_go.gif" alt="Search"/>]]></Value>
      </Setting>
    </Settings>
  </Object>

Can anyone suggest what I might be missing?  Thanks.

 

 
New Post
2/12/2008 12:37 AM
 

Figured it out ... it was just an error in the path.  That'll teach me to keep working instead of sleeping!

 
New Post
2/18/2008 12:42 PM
 

Would you mind sharing what the repaired path looked like? I've encountered the same problem, but haven't found a solution yet.

Thanks in advance.

 
New Post
2/18/2008 1:43 PM
 

I have seen it done by using this in the skin ascx page:
Search:&nbsp;<dnn:SEARCH runat="server" id="dnnSEARCH" Submit='<%# "<img border=""0"" src=""go.gif"" />" %>'/>

 
New Post
2/18/2008 2:41 PM
 

You can also define it in the XML file and then re-upload / reparse the skin. Right now, my starter XML file has the following entries for the [SEARCH] token:

  <Object>
    <Token>[SEARCH]</Token>
    <Settings>
      <Setting>
        <Name>Submit</Name>
        <Value>Search</Value>
      </Setting>
      <Setting>
        <Name>CssClass</Name>
        <Value>SearchStyle</Value>
      </Setting>
    </Settings>
  </Object>

I would assume maybe a new "Setting" called Submit with the value  <![CDATA[ <img src="mypic.gif" border="0" ]]> so it should come out like this:

  <Object>
    <Token>[SEARCH]</Token>
    <Settings>
      <Setting>
        <Name>Submit</Name>
        <Value>Search</Value>
      </Setting>
      <Setting>
        <Name>CssClass</Name>
        <Value>SearchStyle</Value>
      </Setting>
      <Setting>
        <Name>Submit</Name>
        <Value><![CDATA[ <img src="mypic.gif" border="0" ]]></Value>
      </Setting>
    </Settings>
  </Object>

Any corrections would be greatly appreciated.

SB


Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to replace How to replace 'Search' with an image?


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