Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Possible to create a custom search input box?
Previous Previous
 
Next Next
New Post 3/6/2008 12:35 PM
User is offline kdembeck
18 posts
10th Ranked


Possible to create a custom search input box? 

Can somebody recommend techniques to make a search input look like:

I get the button part, that's easy. It's the input box that I don't know where to start.

 
New Post 3/10/2008 2:11 PM
User is offline kdembeck
18 posts
10th Ranked


Re: Possible to create a custom search input box? 

admin\Skins\search.ascx file contains the search input box skin. Easily editable in Visual Studio. Allowed me to change the border style of the input box. Remove the side borders and enclose the input box between two rounded edge images. Had to put it into a single-row table to get the images to line up correctly with the input box.

 
New Post 3/11/2008 2:49 PM
User is offline nightsoul94
96 posts
10th Ranked


Re: Possible to create a custom search input box? 
Modified By nightsoul94  on 3/11/2008 4:52:37 PM)

This is just a recommendation but I would recommend that you not alter the default install files.  The breakdown on why is fairly simple, if you alter the default files the first time you upgrade you will lose all of your work and if you are running multiple portals and would like a different look for each, you cannot do this by altering the default files.  The way I have worked with this in the past, and it may not be the best so feel free to correct me, is to take the default files and create a new folder for each set of files with a different name.  Paste the original files into the new folder and you should be able to use it in you skins.  In the case of the search files, I created a folder under /Admin titled Search2.  The folder structure ended up being /Admin/Search2, then I created a new file under /Admin/Skins titled Search2.ascx.  I then copied each of the files from the /Admin/Search folder to the /Admin/Search2 folder.  I then modified the file Search2.ascx to fit as I wanted it to.  If you don't change any of the vb code and just change the look and feel of Search2.ascx then it will function as a regular search with a different look.  I build my skins in ascx, so I just add the appropriate changes in the file, if you build html skins it might be a bit more tricky, I would have to check, but it shouldn't be too difficult. 

I may have missed a few steps so you can feel free to email me or post here and I can answer questions, if you have them.  The added advantage of this is each time you upgrade, you keep the custom look.  The disadvantage is that you will have to upgrade the custom skin object seperately.  We have been through a half dozen upgrades and haven't needed to fix any problems yet.  You can also work this out with some of the other modules, I did it with the Links module, but you may want to be careful doing this with some of the more complicated modules.  These are, of course, just recommendations but it may make your life easy. 

 
New Post 3/12/2008 10:17 AM
User is offline kdembeck
18 posts
10th Ranked


Re: Possible to create a custom search input box? 

Your reasoning makes perfect sense. I may try your approach now that I've figured out how to get the look I wanted.

I thought about doing what you suggest but I wasn't sure of what all I needed to create a new [SEARCH2] tag that would work in my skins. I create HTML skins.

Thanks for your input. I'll post back if I run into any problems that can't be anwered in the help files.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Possible to create a custom search input box?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP