Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi.
I am new to CouchCMS.
I have read through the documentation but I am a bit stuck in regards to displaying the search results on search.php.

Currently it displays only page titles and not text terms used within editable text areas within the page.

EG, on the about page i have an editable region with a paragraph of "Lorem Ipsum", when i search for "lorem" nothing displays within the search results.

Like I said, I am new to this and cannot find any information regarding the issue im having.

my code on the search.php page is:
Code: Select all
<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_content />
    <hr>

    <cms:paginator />

</cms:search>


Thanks
Hi,

Try to use
Code: Select all
<cms:show k_search_excerpt />
instead of
Code: Select all
<cms:show k_search_content />
.
Hi,

I have changed the code to:
Code: Select all
<cms:show k_search_excerpt />

yet the same problem occurs
Sorry, it seems I haven't read carefully enough your post. So if you are searching for "lorem" search doesn't return any result? Is your searched word contained by a repeatable region? If it is, the problem is that Couch can't be used to search in repeatable regions. I had this problem with one of my sites :( If it is your case too, you should try to use another approach.
Hello and welcome wsb08197 :)

As @atisz suggested, the problem could be that you are using repeatable regions.
If that is not the case, can you please try inputting some real content in the region (i.e. not lorem ipsum)? - MySQL might be filtering out such words.

Please post in your editable region's definition if the problem persists.

Thanks
5 posts Page 1 of 1