Hey all,
I'm new to CouchCMS and CMSes in general. I love CouchCMS so far as I've started to integrate it into a work website.
The function I need help with is the search_form tag.
I have my search form on my home page (index.php) which will be migrated later on to other pages throughout the site. I additionally have a search.php which I want to display results of said searches.
I'm using this code on the index page (where the search originates from):
If I remove the processor, I get the results of my search inline. When I put the processor, it does route me to the search.php page but with no results. I understand that a search tag snippet needs to go into the search.php page but I cannot get it to work, I was wondering if someone could help me out.
Thanks!
I'm new to CouchCMS and CMSes in general. I love CouchCMS so far as I've started to integrate it into a work website.
The function I need help with is the search_form tag.
I have my search form on my home page (index.php) which will be migrated later on to other pages throughout the site. I additionally have a search.php which I want to display results of said searches.
I'm using this code on the index page (where the search originates from):
- Code: Select all
<cms:search_form msg='Search the database!' processor="<cms:show k_site_link/>search.php"/>
<cms:search limit='10'>
<cms:if k_paginated_top >
<div>
<cms:if k_paginator_required >
Page <cms:show k_current_page /> of <cms:show k_total_pages /><br>
</cms:if>
<cms:show k_total_records /> Pages Found -
displaying: <cms:show k_record_from />-<cms:show k_record_to />
</div>
</cms:if>
<h3><a href="<cms:show k_page_link/>"><cms:show k_search_title /></a></h3>
<cms:show k_search_excerpt />
<hr>
<cms:paginator />
</cms:search>
If I remove the processor, I get the results of my search inline. When I put the processor, it does route me to the search.php page but with no results. I understand that a search tag snippet needs to go into the search.php page but I cannot get it to work, I was wondering if someone could help me out.
Thanks!