Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi All, I'm setting up an image gallery and now trying to add the search, I've set it up as described, and now my search displays a list of links to the images. Can I add a thumbnail of the image to the search results as well?

Here's what I have used in the search.php...

<div class="searchWrap">

<cms:search limit='10'>
<cms:if k_paginated_top >
<div class="searchDesc">
<cms:if k_paginator_required >
Item <cms:show k_current_page /> of <cms:show k_total_pages /><br>
</cms:if>
<cms:show k_total_records /> Items Found -
displaying: <cms:show k_record_from />-<cms:show k_record_to />
</div>
</cms:if>

<h3 class="searchResult"><a href="<cms:show k_page_link/>"><cms:show k_search_title /></a></h3>
<cms:show k_search_excerpt />

<cms:paginator />

</cms:search>

</div>

Thanks for any help.
Hi,

Please try placing a <cms:dump /> tag within the cms:search block e.g. as follows -
Code: Select all
<cms:search limit='10'>
   <cms:dump />
</cms:search>

You should see all the data (i.e. variables) that are made available by search. Your image editable region should also be in there.

So, to answer the query - we can use all editable regions that were defined in the pages being fetched by the search tag.

Hope it helps.
That's great.

Many Thanks for your help.
3 posts Page 1 of 1