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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryModifying width of the input box created by the [SEARCH] tokenModifying width of the input box created by the [SEARCH] token
Previous
 
Next
New Post
1/8/2009 8:38 PM
 

I would like to modify the width of the search input box that is embedded by the [SEARCH] token.  The token seem to fix the value at 75px, but I would like to increase this to 150px.  If I view source in my browser against a rendered repository template that includes the [SEARCH] token, I see this:

<br><span class="normal">Search</span>
<input name="dnn$ctr739$Repository$__Search" id="dnn_ctr739_Repository___Search" class="normal" style="width: 75px;" type="text">

I cannot figure how to change this width value.  I have searched all of the *.xml files in every available template for a [SEARCH] token, but unlike every other token, it does not appear to exist in these files.  I have even tried added the following to default/header.xml (basing it on the [CATEGORIES] token):

    <Object>
        <Token>[SEARCH]</Token>
        <Settings>
            <Setting>
                <Name>Width</Name>
                <Value>150</Value>
            </Setting>
        </Settings>
    </Object>

The above had no discernable effect.  What am I missing?  It is it at all possible to reset the width of the search input?

 
New Post
1/12/2009 9:29 AM
 

You can always refer to the Admin/Users Guide on the project downloads page. It has a reference of the tokens and their values.

Here's the token reference for the [SEARCH] token


HEADER.HTML / HEADER.XML
TAG
Description
XML Setting
Default value
[SEARCH]
Inserts Search control. The control is made up  of 3 elements, SEARCH (the prompt),   SEARCHBOX (the input box) and  SEARCHBUTTON (the push button)
SEARCH
CssClass

SEARCHBOX
CssClass
Width

SEARCHBUTTON
CssClass

normal


normal
100


normal


So you're XML to change the width of the textbox part of the search token would be...

   1:     <Object>
   2:          <Token>[SEARCHBOX]</Token>
   3:          <Settings>
   4:              <Setting>
   5:                  <Name>Width</Name>
   6:                  <Value>150</Value>
   7:              </Setting>
   8:          </Settings>
   9:      </Object>
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryModifying width of the input box created by the [SEARCH] tokenModifying width of the input box created by the [SEARCH] token


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