How To List Products In More Than One Section?
11 posts by 2 authors in: Forums > CMS Builder
Last Post: March 10, 2008 (RSS)
By rasbro - January 9, 2008
Thanks for any help you can give me with this. This is an important feature that I didn't think to explore when I was researching CMS Builder.
Regards,
Brian
Re: [rasbro] How To List Products In More Than One Section?
By Dave - January 9, 2008
I don't know if I know exactly what you mean, but we love a challenge and I'm sure we can figure something out. :) A few questions:
What "section editors" do you have setup right now?
Are there many categories? Could you have checkboxes in the product editor for each category: "Huckleberry", "Gourmet Cabin Foods" and then only list matching products (that have a check) in the respective categories?
Another option, we have a feature in the next release (v1.07 - due for release in the next day or so) that lets you use values from one "section editor" as options for a list field if a different section editor. So if you can select a product from your product menu in a list field (pulldown) on another menu. I hope that makes sense.
Do you think either of those will work? If I'm totally off base here maybe let me know a little bit more about the site structure or how you want things displayed.
interactivetools.com
Re: [Dave] How To List Products In More Than One Section?
By rasbro - January 10, 2008
I have about 7 sections setup right now, but only 2-3 will feature some of the same products. Since I am listing products, the menu type is "multi". I can foresee the need for maybe a total of 12-15 sections when the site is complete.
Are there many categories? Could you have checkboxes in the product editor for each category: "Huckleberry", "Gourmet Cabin Foods" and then only list matching products (that have a check) in the respective categories?
This option sounds like a possibility. Let's discuss further. I am not sure what you mean by the other option.
Thanks,
Brian
Re: [rasbro] How To List Products In More Than One Section?
By Dave - January 10, 2008
Maybe it would be possible to have one section "Products" which checkboxes for the 12 categories that a product might belong to? So you might have a checkbox called 'isHuckleberry' that you'd check for Huckleberry products?
If you could do that, then you could have multiple list viewers, and have each one only show the products you wanted. So you might have huckleberryList.php and you'd add this option to only show huckleberry products:
$options['where'] = "isHuckleberry = '1'";
Let me know if you think that will do the trick. If not, we can always figure out another approach.
interactivetools.com
Re: [Dave] How To List Products In More Than One Section?
By rasbro - January 10, 2008
Thanks,
Brian
Re: [rasbro] How To List Products In More Than One Section?
By Dave - January 10, 2008
Leave all your other Section Editors intact for now, create a new one called "All Products" with all the fields you need plus checkboxes for the different categories.
Enter a few different products, for some check multiple categories.
Create a "list viewer" and check that it's listing all the products. Then add this code with one of the category checkbox fieldnames you've created:
$options['where'] = "isHuckleberry = '1'";
Check and see if it's just listing products that are in that category.
Create a copy of the list viewer for each category and change the where fieldname in each so each one shows a specific category.
Does that make sense? If you think that will do what you want give it a try. Hopefully it won't take too long to give it a quick test.
interactivetools.com
Re: [Dave] How To List Products In More Than One Section?
By rasbro - February 18, 2008
It appears to work like you instructed. My only question now is whether or not I need to have all products added through an "All Products" section editor, or if I can still have the separate section editors for each product category. I can see a lot of advantages to having all products under one section editor but I also see a disadvantage with having a lot of products to manage all under one section. And is there an easy way to move all products from separate sections over to just the one?
Thanks,
Brian
Re: [rasbro] How To List Products In More Than One Section?
By Dave - February 18, 2008
There's no easy way to migrate products from one section to another. The way to do it would be to use a tool like phpMyAdmin or something similar and write a custom MySql query to copy them over.
If you've entered a lot of data already email me directly (dave@interactivetools.com) and I'll see what I can do to help automate the process for you.
interactivetools.com
Re: [Dave] How To List Products In More Than One Section?
By rasbro - February 19, 2008
Thanks,
Brian
Re: [rasbro] How To List Products In More Than One Section?
By rasbro - March 7, 2008
Could you still do this? Please let me know what you need and if it is something we could do in the next few days.
Thanks,
Brian