[solved] ListIt2 Select rows with certain value
Posted: Tue Jan 13, 2015 12:27 pm
Hy,
i have a listit2 instance with products in.
Now i want to Create combined products but i can't use categories because those are used to define the product types.
So i created a multi-select field def called "productgroup".
Now i was wondering how i can generate a listing of products with a certain value in the "productgroup" field def.
I can think of a method, but i don't think it is the best one.
I thought of creating a summary template and add a {if}-statement where i check the productgroup field def for that value before printing the row.
This method however will generate a lot of entries in the memory to then only output a small portion of those. If you do this 2 or 3 times on a page, i fear it will make the page generation slow.
I also don't want to make a template for every productgroup...
who can give me some tips?
i have a listit2 instance with products in.
Now i want to Create combined products but i can't use categories because those are used to define the product types.
So i created a multi-select field def called "productgroup".
Now i was wondering how i can generate a listing of products with a certain value in the "productgroup" field def.
I can think of a method, but i don't think it is the best one.
I thought of creating a summary template and add a {if}-statement where i check the productgroup field def for that value before printing the row.
This method however will generate a lot of entries in the memory to then only output a small portion of those. If you do this 2 or 3 times on a page, i fear it will make the page generation slow.
I also don't want to make a template for every productgroup...
who can give me some tips?