CMS Development

amin9
Participant

Cannot edit or design search result page

SOLVE

When I submit the search it goes to 404 page. So I am trying to fix it.

#1. When I browse manually,  for example:
http://my.domain/hs-search-results?term=keyword
The page displaying the search result, but have different look, different header & footer.

And most importantly, there is no search box in this search result page.

#2.
I have create a new tempate for search, but that is not avalable in the dropdown. Only 2 items are available:
see screenshot:

a1.png

#3. Edit button is desabled. So these existing tempates are not editable. 
see screenshot:

a2.png

  

Please help.

0 Upvotes
1 Accepted solution
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Cannot edit or design search result page

SOLVE

Hi @amin9

is your template set to "available for new Content"?

 

Your template should have something like this

<!--
  templateType: search_results_page
  isAvailableForNewContent: true
  label: My custom search
-->

 

  • templateType: search_results_page - if this is set to something different it won't show up in the options for custom search templates
  • isAvailableForNewContent: if set to false it won't show up as select option too
  • label: Give it a proper name so you'll find it easier

 

Hope this helps

 

 

best, 

Anton

Anton Bujanowski Signature

View solution in original post

1 Reply 1
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Cannot edit or design search result page

SOLVE

Hi @amin9

is your template set to "available for new Content"?

 

Your template should have something like this

<!--
  templateType: search_results_page
  isAvailableForNewContent: true
  label: My custom search
-->

 

  • templateType: search_results_page - if this is set to something different it won't show up in the options for custom search templates
  • isAvailableForNewContent: if set to false it won't show up as select option too
  • label: Give it a proper name so you'll find it easier

 

Hope this helps

 

 

best, 

Anton

Anton Bujanowski Signature