Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Composite.Search.SimplePageSearch.SearchForm

$
0
0
Hi

I want to implement the Search functionality on the home page . When clicking on search it's needed to be showed the results in the Search Result page.

Here is the code in the home page template
<f:function xmlns:f="http://www.composite.net/ns/function/1.0" name="Composite.Search.SimplePageSearch.SearchForm">
<f:param name="SearchResultPage" value="dbfc9211-332d-47be-a547-adb640302113" />
<f:param name="SearchButtonLabel" value="Search" />
</f:function>
Though I have given GUID of the search Result page when I click on Search it's not giving any results. I noticed it is redirecting to incorrect way as below
http://localhost:0000/Home?q=welcome
It should be redirected to http://localhost:0000/Home/Search?q=welcome
When I typed "http://localhost:0000/Home/Search?q=welcome" , it's giving me correct results.

Could some please tell me why this is not passing the correct page when I click on the Search ?

Thank you

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>