Back to SiteSearch Support

sweekriti6151368
sweekriti6151368

I am trying to use the plugin in CMS page but no action is performed. The query appears on the URL as: http://127.0.0.1:8000/subs?q=hello. Support for custom plugins were said to be added according to the documentation. I could not understand where that needs to be added. I am getting search returned no result in every try

Last updated

OFFLINE
OFFLINE

You need to show me some code or at least tell me what your setup is otherwise I cannot help you.

sweekriti6151368
sweekriti6151368

I have just added the components to my respective pages. As I said I am using the plugin for the CMSpage. The searchInput component, siteSearchInclude are added to the page where I want the search to be performed. The searchResults component is then added to the page where the result is to be viewed. I have not added the custom plugins. In the page where I want the form to occur and the search to be done, following codes are included:

[searchInput]
useAutoComplete = 1
autoCompleteResultCount = 5
showProviderBadge = 1
searchPage = "search.htm"

[siteSearchInclude]
==
{% component 'siteSearchInclude' %}

<form action="{{ 'search' | page }}" method="get">
        <input name="q" type="text" placeholder="What are you looking for?" autocomplete="off">
        <button type="submit">Search</button>
    </form>
Following is for the search result:

title = "search"
url = "/search"
is_hidden = 0

[searchResults]
resultsPerPage = 10
showProviderBadge = 1
noResultsMessage = "Your search returned no results."
visitPageMessage = "Visit page"
==

{% component 'searchResults' %}

Last updated

OFFLINE
OFFLINE

What is the content of the CMS pages your are searching through? Also, did you enable the cms pages search provider in SiteSearch's settings? You need to explicitly enable this feature.

sweekriti6151368
sweekriti6151368

I don't know how but it started working. Thank you

1-5 of 5