I have a category with an ID of 12 and an ID of 15. In category settings category 15 has a custom design of mylayout\_default and category 12 has a custom design of mylayout\_design2. The difference in the two designs is `catalog/product/list.phtml`.

When I browse to category 15 it loads the default layout of mylayout\_default, as it should. When I browse to category 12 it loads the design2 layout, as it should.

**The Problem**

When I search I need the same rules to apply and they don't. Let's say the search URL is `/catalogsearch/result/?cat=15&q=show me some results`. The default layout is loaded. However, when I search category 12 (`/catalogsearch/result/?cat=12&q=show me some results`) the layout does not update to design2.

In catalogsearch.xml I can modify the block to `<block type="catalog/product_list" name="search_result_list" template="../../design2/template/catalog/product/list.phtml">` but that only works if I modify the default layout file (not design2) and it, of course, applies globally rather than just a single category.