Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hello sir,

How to add custom search box in website .

thanks
Image
where innovation meets technology
Hi,

As described at the docs at http://www.couchcms.com/docs/concepts/using-search.html, use cms:search_form to create the search form.

Do a view-source to take a look at the generated HTML.
Copy/paste form's HTML and modify it to create your own form - just make sure that the textbox, within which the keywords will be inputted by the users, is named 's'.

Hope this helps.
Hello sir,

I was trying this search box . this is done but this search box work on only one particuler page . i want this search box work on template not only blog.php.
how can i do search box on index page and search anything on whole template.
so please tell me how can i do this.




thanks
Image
where innovation meets technology
Hi,

Don't set the 'masterpage' parameter i.e. change the following statement
Code: Select all
<cms:search masterpage='blog.php' limit='10'>

to this
Code: Select all
<cms:search limit='10'>

and all the templates will be searched.

Please see http://www.couchcms.com/docs/tags-reference/search.html for details.
but I do not understand. could get me an example
@ncouto, please see http://www.couchcms.com/docs/concepts/using-search.html for comeplete example.
6 posts Page 1 of 1
cron