N
nicholas
I am using Obout TreeView: www.obout.com
I would like to implement a page to add and remove categories to a product
with the Obout Treeview with checkboxes.
Does anyone allready did this and could help me with this??
Here is what I would like to do:
--------------------------------
When the user selects a product, he can edit the categories for that
product.
So he goes to the page to edit the categories:
On that page there is an 'Obout'-treeview with checkboxes.
All categories where to the product belongs are checked.
The treeview is generated from a dbase. It contains all categories from
tbl_categories. (there are parent and child categories)
So, now the user can uncheck or check more other categories.
All this data is stored in the table tbl_productcategories:
column1: productcategoryID (=autogeneratedID)
column2: productID
column3: categoryID
An example of my treeview could be like this, but with a checkbox before
every category:
Cars
- volvo
- ford
- others
Computers
- PC
- Mac
- others
I hope you understand what I mean...
There are lot's of ways to add a product to categories, but I think this-one
is a very good one, because the user immediately sees all categories on a
tree (so: parent and child categories), and he can check all the categories
where the product should belong to.
Really hope someone can help me with this.
And, btw, I'm using Obout treeview, but if someone has a better idea, it's
ofcourse welcome !
THX everyone,
Nic
I would like to implement a page to add and remove categories to a product
with the Obout Treeview with checkboxes.
Does anyone allready did this and could help me with this??
Here is what I would like to do:
--------------------------------
When the user selects a product, he can edit the categories for that
product.
So he goes to the page to edit the categories:
On that page there is an 'Obout'-treeview with checkboxes.
All categories where to the product belongs are checked.
The treeview is generated from a dbase. It contains all categories from
tbl_categories. (there are parent and child categories)
So, now the user can uncheck or check more other categories.
All this data is stored in the table tbl_productcategories:
column1: productcategoryID (=autogeneratedID)
column2: productID
column3: categoryID
An example of my treeview could be like this, but with a checkbox before
every category:
Cars
- volvo
- ford
- others
Computers
- PC
- Mac
- others
I hope you understand what I mean...
There are lot's of ways to add a product to categories, but I think this-one
is a very good one, because the user immediately sees all categories on a
tree (so: parent and child categories), and he can check all the categories
where the product should belong to.
Really hope someone can help me with this.
And, btw, I'm using Obout treeview, but if someone has a better idea, it's
ofcourse welcome !
THX everyone,
Nic