Hi
I'm trying to implement a search form on my blog with the help of the documentation (which helped me soooo much to understand the whole Couch idea, it's really amazing.
)
But I don't completely understand the search form way of working.
I have a snippet called 'sidebar.html' which contains this lines of code:
Than I created a search.php in my root folder and that file contains this code:
I do get a search form in my sidebar, but when I add a keyword (that is certainly in one of the blogposts) I get the result you can see in attachment.
Any idea if I missed some steps here?
Thanks!
I'm trying to implement a search form on my blog with the help of the documentation (which helped me soooo much to understand the whole Couch idea, it's really amazing.

But I don't completely understand the search form way of working.
I have a snippet called 'sidebar.html' which contains this lines of code:
- Code: Select all
<sidebar class="col-md-4 sidebar">
<cms:search_form msg='Enter keywords' processor="<cms:show k_site_link/>search.php"/>
</sidebar>
Than I created a search.php in my root folder and that file contains this code:
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:search_form />
<cms:search>
<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 style="color:red;" href="<cms:show k_page_link/>"><cms:show k_search_title /></a></h3>
<cms:show k_search_excerpt />
<hr>
<cms:paginator />
</cms:search>
<?php COUCH::invoke(); ?>
I do get a search form in my sidebar, but when I add a keyword (that is certainly in one of the blogposts) I get the result you can see in attachment.
Any idea if I missed some steps here?
Thanks!