Developer forum

Forum » Ecommerce - Standard features » New index: Limit products to group

New index: Limit products to group

Thomas Schroll
Reply

Hi

I need to setup many pages that only show one product group at a time. I also need a free text search box. I have setup the new index with a summary field for the new index, but I can't figure out how to setup the limiting of groups. In the old way to setup Product catalog I just selected the group I wanted directly in the paragraph setup, but that is not possible with the new index. So far I have different queries each with a Group Id's = constant. With that approach I need to setup many similar queries and it seems a bit redundant.

Does anybody know of a better way to do this?

Regards Thomas


Replies

 
Nicolai Høeg Pedersen
Reply

The only better way is to use group navigation.

You can also extend the page properties with an item type. That itemtype could have a field for "GroupID" that is simply a text field or a group selector. That information will then show up in your navigation.xml and you can add &GroupID={Itemtype.GroupID} in your navigation xslt. In that way the group ID will be part of the URL and you can then catch it using the parameters on the query.

Nuno has a request for overruling the default value for parameters on the paragraphs - so that would also do it, but not out yet.

BR Nicolai

 
Thomas Schroll
Reply

Thanks Nicolai

 
Adrian Ursu
Reply

Please be aware that in some versions, if you mix ecommerce navigation with page navigation the ItemType properties of the page are not rendered in the XML.

Adrian

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

Yes, the page properties from the item type is not on ecommerce navigation XML. But he is not using it in this situation - and that is the entire problem.

BR Nicolai

 

You must be logged in to post in the forum