Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi,

I did a search and it seems that nobody ever mentions this.

I have my main website in French, and I am creating a subdomain in Spanish.

Both share the same Couch install.

How can I restrict the search in French for the French, and in Spanish for the Spanish?

Can I do so by adding all template to each search, like

Code: Select all
<cms:search masterpage='blog.php', 'tableau.php'...


Or is there another way to limit the search engine grasp to unwanted language?

Thanks if you have any idea.
P
Hi Paolo,

If the different languages have separate templates of their own, then yes, you can specify templates with <cms:search> to constrain the results to within only those templates.

If however the languages share the same templates (i.e. differ only in their editable-regions), then I am afraid there is no way of limiting search to only specific languages.
Hi KK,

I fact the Spanish version consists on only one template - Galeria.

So can I do :
<cms:search template='galeria' /> for the Spanish version
and <cms:search template !='galeria' /> for the French ?

Is that a correct coding for a template and few pages? Sorry if the question seems dumb.

Code: Select all
<cms:search template!='galeria' && page!='faq' />


Thanks
Paolo, you can get some sample code from our docs -
http://docs.couchcms.com/tags-reference ... masterpage

Hope it helps,
4 posts Page 1 of 1