Page 1 of 1

Search - emit specific templates from results

Posted: Thu Oct 13, 2011 9:00 am
by emilyshimell
Hi all

I have just started using the Search Module on my website. I have many products and information pages which need to be searched and this is working, but many of the results are causing problems because of the hiarachy of my product pages. For example this is (part of) my hiarachy:

Products
Product group 1
manufacturer 1
product 1 summary
product 1 description
product 1 technical
product 1 documents/downloads
product 2 summary
product 2 description
product 2 technical
product 2 documents/downloads
manufacturer 2
product.......
..............
.............
Product group 2
etc etc

The child pages for each summary are shown as tabs on the product summary page shown here: http://www.videocentric.co.uk/video-con ... m100.shtml

I would like all the page/tab content to be searched but I don't want each specific tab to be shown in results on their own, rather the product parent page which would then display all the child tabs rather than just one tab.

As for templates, I have each child page for products as an "inner content page" and this template is only used for the product tabs.

Is there a way of searching all pages and then if template=inner content page, show parent page of this in results only? I have found other search questions that ask similar about omitting specific results from searches but these seem to display ONLY parent pages and because of the many parent/children hiarachy this would then not show a lot of pages, not just the tabbed ones.

FYI the search function has been put in my header template that appears on every page. I also have the issue of my footer having links on every page which causes issues with the results and so I would like to be able to omit a specific content block from searches BUT I think thats another question!


Thanks for reading this long comment, i am quite a newbie to all of this and have really tried to have a stab at it before coming here but I think this is a little more complex than what I have done so far on the site. I hope I have given plenty (if not too much) info about what i have done/trying to do.

Thanks in advance everyone! ;D