Search result with full path
Posted: Sun Oct 02, 2011 5:06 pm
Hello All,
I'm creating a web site for my colleague. I installed Cataloger and and created a structure like:
Simple site menu:
- About Comapany
- Contant
- Catalog
In the Catalog:
1. Category 1
1.1. sub category
1.1.1 Product
1.1.2 Product 2
1.2 Sub category 2
1.2.1 Product
2. Category 2
(...)
When I search for JBC the result looks like:
JBC - JBC (100%)
JBC - JBC (100%)
About Company - About Company (90%)
I would like to show the Search result as:
Category 1 / Sub category / JBC - JBC (100%)
Category 2 / Sub category / JBC - JBC (100%)
About Company - About Company (90%)
How can I obtain this structure? How can I get the path (like in breadcrumbs) to the found item?
---------
Finally, I found the solution (poor one but it works).
1. I took the code from breadcrumbs and changed $manager to $hm and set $thispage = $node->getID();
2. set trail to array
3. in the foreach (on line 501) assign the value to the title
I'm creating a web site for my colleague. I installed Cataloger and and created a structure like:
Simple site menu:
- About Comapany
- Contant
- Catalog
In the Catalog:
1. Category 1
1.1. sub category
1.1.1 Product
1.1.2 Product 2
1.2 Sub category 2
1.2.1 Product
2. Category 2
(...)
When I search for JBC the result looks like:
JBC - JBC (100%)
JBC - JBC (100%)
About Company - About Company (90%)
I would like to show the Search result as:
Category 1 / Sub category / JBC - JBC (100%)
Category 2 / Sub category / JBC - JBC (100%)
About Company - About Company (90%)
How can I obtain this structure? How can I get the path (like in breadcrumbs) to the found item?
---------
Finally, I found the solution (poor one but it works).
1. I took the code from breadcrumbs and changed $manager to $hm and set $thispage = $node->getID();
2. set trail to array
3. in the foreach (on line 501) assign the value to the title