Get the GoogleCustomSearch results in separate page

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/23/2012 7:16:32 AM
Gravatar
Total Posts 26

Get the GoogleCustomSearch results in separate page

Hai ,

         GoogleCustomSearch  control i transfered to layout.master,Now in my site GoogleCustomSearch control works,but it gives the results in that same page,so existing contents of that page  goes bottom, so design is changing.

         I like to get the GoogleCustomSearch results in separate page,how can i do it.

         In that GoogleCustomSearch Control I cannot find the results div.

Thanks,

Nalini.

 

                

1/23/2012 10:50:53 AM
Gravatar
Total Posts 2239

Re: Get the GoogleCustomSearch results in separate page

Hi Nalini,

mojoPortal comes with support for Google Custom Search so all you need to do is input your Google Custom Search ID in the API Keys section of the Site Settings. To get there go to Administration > Site Settings > API Keys. If you want the google search to be used by default, select it from the Default Site Search Engine box.

Your ID should look something like this: 017268123402775890745:jfnmabcaxzs

HTH,
Joe Davis 

1/24/2012 7:44:33 AM
Gravatar
Total Posts 26

Re: Get the GoogleCustomSearch results in separate page

Thanks Joe,

                       I already gave that Api key settings in Administration/SiteSettings ,Now my site refers Google custom search in layout.master it gives an fine results in same page.

                       But i want textbox and search button in layout.master but results have to comes in new page,how can i do it.

Nalini.

1/24/2012 8:03:32 AM
Gravatar
Total Posts 58
"Digg-in yourself to achieve excellence!" Follow #GPsays

Re: Get the GoogleCustomSearch results in separate page

Hi Nalini,

Happy to hear that you did the same,

You can use the Google Custom Search Control that's available on mojoPortal by default, shown below,

<portal:GoogleCustomSearchControl ID="MyGoogle" CustomSearchId="MyCS" DivId="MySearchDiv" Enabled="true" />

but this will show the results on the same page where this control renders.

Or Else if you wanna have the search results displayed on a different page, then make a note of the google search custom page url, where you use this control and use a simple TextBox with a Button associated with it so that it routes your request to that page with the search request.

--
Regards,
Guruprasad Balaji

1/24/2012 9:10:51 AM
Gravatar
Total Posts 2239

Re: Get the GoogleCustomSearch results in separate page

You don't need to use the <portal:GoogleCustomSearchControl in your layout.master. You can use the <portal:SearchInput control and set your default site search engine to google. See the "Styling the Search Input Box" documentation for more information on that control.

HTH,
Joe D.

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