search control

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.
6/10/2011 2:00:04 AM
Gravatar
Total Posts 39

search control

Hi,

Actually search control is in master page. It is working fine. In my situation, i want to add search control in blog module (blogviewcontrol.ascx page).

I added the control in that ascx control.  its coming but search is not working. when i click the search icon it is redirecting to the searchresult page just its redirect not search the content. its not passing search content as  a query string. just redirecting.

I added like this in ascx page,

<portal:SearchInput ID="SearchInput1" runat="server" LinkOnly="false" CssClass="searchtxtbox"></portal:SearchInput>

 

 

 

 

6/10/2011 7:28:06 AM
Gravatar
Total Posts 18439

Re: search control

My advice is avoid forking the mojoPortal code and find a way to position the one in layout.master so it displays near the blog, you could use a different skin for the blog page if needed to make the search input more prominent on the blog.

Best,

Joe

11/8/2011 10:56:56 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: search control

Is there anyway to have a search control that is configured to search only one module - e.g. if I use a blog for a kind of knowledge base.  I'd like to have a specific search on the blog page that searches only that content. 

Related issue - if the above is possible, can there still be a site search that searches everything? This would mean two search controls in the layout.master

thanks

 

11/9/2011 10:19:37 AM
Gravatar
Total Posts 18439

Re: search control

I will add a property on the SearchInput control for FeatureGuid. If specified then the feature guid will be passed as a query string parameter to filter results to only that feature, similar to the feature dropdown list on the search results page which filters results by feature.

This will be in the next release so you would be able to add more than one SearchInput to layout.master if you like and set a featureguid on it if desired. Probably what you would want to do is use a different skin on the blog page and set the search input there to have the guid, it would probably be confusing to users having more than one search input.

FeatureGuid="026cbead-2b80-4491-906d-b83e37179ccf" is what you would put on the control to search only the blog feature. I've just tested it here on my local machine.

Hope that helps,

Joe

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