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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  is it possible to remove the Search Box
Previous Previous
 
Next Next
New Post 5/16/2008 2:23 AM
User is offline FAIR TRADE Football (we want fairness 4 fans)
98 posts
www.fairness4fans.co.uk
10th Ranked


is it possible to remove the Search Box 

is it possible to remove the Search Box from the home page - when a user is not logged in?

I don't mind the search box being there when users are logged in, but if they are not logged in - I would like to remove it. 
Or, as a work around - perhaps use a blank page for the log in screen would be a better option?

regards,

mark richardson

 
New Post 5/16/2008 3:21 AM
User is offline Paul Deschenes
102 posts
9th Ranked


Re: is it possible to remove the Search Box 

Yes, you have to edit the skin ASCX file. I your scenario above do this:

Find you skin file, say it's called skin1.ascx. copy it and name it skin2.ascx

Assuming you have applied skin1 as you skin for the entire site, On your login page go to page settings and set the page skin to skin2.ascx

Now open skin1.ascx in visual studio, html editor or text editor. Locate the tag that says <dnn:search ........ />. Just remove, save and you're done. That may mess up the look and feel of your page so you may have to play around with the layout to get it right.

 
New Post 5/19/2008 9:27 AM
User is offline FAIR TRADE Football (we want fairness 4 fans)
98 posts
www.fairness4fans.co.uk
10th Ranked


Re: is it possible to remove the Search Box 

Thanks,

I am not sure which .ascx skin file it is.

I have located a list of skins here: >> \admin\Skins\ and edited Search.ascx, but this did not a make a difference.

is there a way to detect which skin file is being used by the  home page please?

regards,

mark

 
New Post 5/19/2008 1:19 PM
User is offline Jeff Cochran
1087 posts
6th Ranked


Re: is it possible to remove the Search Box 

It's whatever skin you have assigned to it.  Open the page properties, Appearance and look at the skin.  You will find the skins at /portals/_default/skins/{SkinName}/{Skin}.ascx.  The /_default/ portal might be a portal number if the skin is installed for only a specific portal.

You want to remove the Search object, a line that will look something like:

<dnn:SEARCH runat="server" id="dnnSEARCH" .....

Keep in mind that you may need to insert something to have the skin format ocrrectly, or adjust the skin layout.

Jeff

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  is it possible to remove the Search 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.

 


Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com
SINA101
WANT A SPECial sIte iN TAIWAN?
sina101.com
Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/

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