Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to add search bar to web part page

  Asked By: Keaton    Date: Jan 24    Category: Sharepoint    Views: 3538

Using the CEWP, is there a way I can add the search bar to a web part
page I have created? The search bar shows up everywhere else in WSS,
but not on web part pages I have created.



6 Answers Found

Answer #1    Answered By: Sharonda Mcfarland     Answered On: Jan 24

I tried this once awhile back, if I remember correctly search  would appear but not work.

Answer #2    Answered By: Cory Brooks     Answered On: Jan 24

If you can edit the ASPX direct mode page, that would be best. Just add
the search  server control to the right place on the page. If not, you
should be able to use the same HTML that the search uses on other pages.
A CEWP could be used to position the HTML in the client-side DOM. I
don't know why that wouldn't work.

Answer #3    Answered By: Ruth George     Answered On: Jan 24

but I've tried that as per our previous discussion and
as another poster said, when you copy the exact HTML from ViewSource
the control appears correctly (I used a simple form web  part since a
CEWP doesn't accept FORM tag), it accepts text input, but when you
click "go" the page  refreshes with no results (no matter what you
type in there).

I will continue researching this...

Answer #4    Answered By: Peter Peterson     Answered On: Jan 24

Import the attached CEWP DWP onto any Smart Page in any Document Library
and you should see the familiar Search Box in the top right corner.
Please let me know the pros and cons of your experience; then I'll blog
about it.

Answer #5    Answered By: Kalyan Pujari     Answered On: Jan 24

I need that SmartPageSearchBoxClone.dwp too . . . but the
attachment was not stored. Can you help me out?

Answer #6    Answered By: Prabhu Talari     Answered On: Apr 01

Hi Peter,

I am pretty new to SharePoint and trying to get hands-on for developing a website for my team at work.

I am trying to add search box which can search documents based on a search query from document library. Could you attach the cewp dwp attachment which sounds like that I am looks g for. Appreciate any help.


Didn't find what you were looking for? Find more on How to add search bar to web part page Or get search suggestion and latest updates.