Removing Search Panel

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
7/9/2009 6:43:16 AM
Gravatar
Total Posts 14

Removing Search Panel

When I remove

<div class="searchpanel">
<portal:SearchInput id="SearchInput1" LinkOnly="False" runat="server" />
</div>

from layout.Master because I don't want the search panel on the website, and after that I want to edit the content of a page the following error is trown when clicking the update button.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 9 Jul 2009 11:36:21 UTC


Message: Object expected
Line: 119
Char: 91
Code: 0
URI: http://www.mindspirit.nl/HtmlEdit.aspx?mid=123&pageid=62

When I put this any where on the page the error does not occure.

How can I remove the seach without the error above?

 

 

7/9/2009 9:29:40 AM
Gravatar
Total Posts 18439

Re: Removing Search Panel

Hi,

You could add this to your user.config to disable the search feature.

<add key="DisableSearchIndex" value="true" />

Be sure to recycle the app by touching Web.config or using the control panel, this will make it see your new setting in user.config. 

Though I do consider it a bug if it throws errors when removing the search input from the layout.master. But the error message gives no real clues, is that a client side javascript error or is there a better error in the mojoportal log with a stack trace?

When I look at line 119 in he server side code there is nothing there that could possibly throw an error like this, the line looks like this:

this.txtTitle.Text = html.Title;

just setting a property on a text box, and furthermore that line of code is not even executed on postback.

Hope it helps,

Joe

7/9/2009 10:01:41 AM
Gravatar
Total Posts 14

Re: Removing Search Panel

Your solution does work. Thanks.

The error is trown at the client like a normal script error .
The Mojoportal System Log does not show any error.
If I find more info will let you know.

You must sign in to post in the forums. This thread is closed to new posts.