Developer forum

Forum » Development » multiple layouts for search results

multiple layouts for search results


Reply
In the serarsh module for e-com you can set where the results are going to be displayed.
What do you do if you want to display different products in different whays and on different pages.
Can't search link it to the original place where it's shown on the site like it does with regular pages?

Replies

 
Nicolai Høeg Pedersen
Reply
That can only be done by adding a custom field on the group or product and tell what page the product should be shown in...

We have a backlog item for making it possible to tell that products in group Y should be displayed on page X.
 
Reply
So how do I add this customField in the search results links?
Do I need the the whole URL or just the paragraphID or what do I need?
 
Nicolai Høeg Pedersen
Reply
Go to management center, ecommerce, product catalog, product fields and create one there.

Then a new field appears on all products.

That field has a template tag with a value - you can find it using DwTemplatetags inside the products loop in your product list template.
 
Reply
I can find the custom fields i the product loop but how can I find it in the search results?
If I understood you correct I will exchange the link in the search result with the link in the custom field for that product.
Or how do I redirect it to the page in the custom field? 

 

You must be logged in to post in the forum