How to set the search box source code?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
3/12/2012 2:47:37 AM
kok
Gravatar
Total Posts 47

How to set the search box source code?

 thgehi there, May I knhow to se

3/12/2012 2:51:43 AM
kok
Gravatar
Total Posts 47

Re: How to set the search box source code?

hi there,
May I know how to set the search box source code?
can list the step?
thanks.

3/12/2012 1:32:49 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: How to set the search box source code?

If you are wanting to know how to add the searchbox to a site and style it the instructions are located here.

3/12/2012 9:00:02 PM
kok
Gravatar
Total Posts 47

Re: How to set the search box source code?

Hi Aaron,

i have found this code before,

but how to set it? can you  list the step or tips?

thanks.

3/13/2012 8:37:13 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: How to set the search box source code?

The SearchInput control goes into the layout.master but more then likely there is already one there and you just have to set the correct options. Make sure there are not two instances of the SearchInput as it will cause a headache for you.

The CSS you can just add to your style.css file for your skin.

3/13/2012 9:14:08 PM
kok
Gravatar
Total Posts 47

Re: How to set the search box source code?

The content that belongs here is too complex to display securely.
3/13/2012 10:38:18 PM
Gravatar
Total Posts 2247

Re: How to set the search box source code?

Hi,

You shouldn't put the control inside the <head>, put it inside the <form>.

Also, you already have a SearchInput control in your layout.master (it's toward the bottom and renders as a link) so you need to change the ID of the SearchInput you are adding to SearchInput2.

HTH,
Joe D.

3/13/2012 10:55:19 PM
kok
Gravatar
Total Posts 47

Re: How to set the search box source code?

Hi Joe,

i already have a searchinput control in layout.master? but why cannot work? have mistake?

for now i no need add more, just use back original file?

how to show out the search box?

thanks.

3/13/2012 11:05:01 PM
Gravatar
Total Posts 2247

Re: How to set the search box source code?

Most skins have a SearchInput control in them but it doesn't show a search box, it shows a search link.

Change the ID of the SearchInput control you added to SearchInputBox1.

HTH,
Joe D.

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