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, ...dnn:search adding image with submit="search"?dnn:search adding image with submit="search"?
Previous
 
Next
New Post
10/10/2006 9:28 PM
 

I would like to modify my skin to include an image with the dnn:search token but have been unable to find an example. I am using a ascx file with the following entered:

<TD><dnn:SEARCH runat="server" id="dnnSEARCH" cssclass="tab4-search" submit="Search"/></TD>

The image I would like to add is call search.gif and is located in a images folder of the skin.

This is not right but will give an idea of what I am trying to do.
<dnn:SEARCH runat="server" id="dnnSEARCH" cssclass="ta-search" submit="Search<img src='<%=SkinPath%>images/search.gif'>"/>

I do not want to add the image outside the search token because I am using a border around the cssClass(ta-search) that I want to be around the image also.

__________
| Search $ |   $=the image   border is created by the cssclass on dnn:search
-------------

Hope that make sense,
Tom

 
New Post
10/11/2006 1:23 AM
 

Thumper,

At T-Worx, we create HTML-based skins. Here's an example of what the XML attributes would look like for the search token:

 <Object>
  <Token>[SEARCH]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>Search</Value>
   </Setting>
   <Setting>
    <Name>Submit</Name>
    <Value><![CDATA[<img src="images/SearchButton.jpg" border="0" align="absmiddle">]]></Value>
   </Setting>
  </Settings>
 </Object>

I hope this helps.

TW


Tracy Wittenkeller
 
New Post
10/12/2006 10:55 AM
 

I appreciate the response T-Worx.

Anyone know is this is possible with ascx file?

 
New Post
10/12/2006 10:56 AM
 

I appreciate the response T-Worx.

Anyone know is this is possible with ascx file?

 
New Post
10/12/2006 11:48 AM
 

Here's the Registration line for the search control: <%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>

And some sample code for the skin object: <dnn:SEARCH runat="server" id="dnnSEARCH" CssClass="Search" Submit="<img src=&quot;image/SearchButton.jpg&quot; border=&quot;0&quot; align=&quot;absmiddle&quot;>" />

TW


Tracy Wittenkeller
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dnn:search adding image with submit="search"?dnn:search adding image with submit="search"?


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