Search

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



Search is a module for searching "core" content along with certain registered modules. You put in a word or two and it gives you back matching, relevant results.

You can see the search module in use in the default templates, like on this page. Simply put search tag in your template, where you want the search form to appear.

{search}

If you want the results of a search to appear on a different page, you can specify this with the parameter:

{search resultpage='page-alias'}

For more information, see the Search module in the Admin Panel, in the Extensions menu.

   Customizing result template

The Search module also searches in some modules. You can influence the search results by using {if $entry->module == 'Modulename'}

<h3>{$searchresultsfor} &quot;{$phrase}&quot;</h3>
{if $itemcount > 0}
<ul>
{foreach from=$results item=entry}
{if $entry->module == 'Products'}
<li>Webshop - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
{elseif $entry->module == 'Guestbook'}
<li>Another guestbook name - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
{else}
<li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
{/if}
{/foreach}
</ul>
<p>{$timetaken}: {$timetook}</p>
{else}
<p><strong>{$noresultsfound}</strong></p>
{/if}