Hi, im newbie on extending Umbraco so i would like some tips to start with.
I have made a web for a customer that has a product catalog.
There is a node named Catalog that has children with document type Category wich has children with document type Product.
I would like that when the user clicks on the "Catalog" node, in the edit page to have a new tab called "manage products" that loads a panel with a dropdownlist with the categories with on selected loads a grid view (table) with the products.
I dont know where to start, this is how i have thought it may be:
On the "Catalog" document type, create a new tab property called "manage products".
Create a new data type that renders all i need (the dropdown and the gridview)
Add a property of this new data type to the "Catalog" document type on the new tab.
On the "save" event the changes made by the user on the gridview (order the products) could be saved.
Well, i dont know if this approach is good. And i dont know where to start from.
That's basically the way to do it :-) As long as you're using the API to manipulate data, you should be just fine! I will not recommend you to write data directly to the database because of caching and relations.
Extend edit page with a custom tab
Hi, im newbie on extending Umbraco so i would like some tips to start with.
I have made a web for a customer that has a product catalog.
There is a node named Catalog that has children with document type Category wich has children with document type Product.
I would like that when the user clicks on the "Catalog" node, in the edit page to have a new tab called "manage products" that loads a panel with a dropdownlist with the categories with on selected loads a grid view (table) with the products.
I dont know where to start, this is how i have thought it may be:
Hi Tito,
That's basically the way to do it :-) As long as you're using the API to manipulate data, you should be just fine! I will not recommend you to write data directly to the database because of caching and relations.
A datatype is what you're looking for here.
Hope it helps.
All the best,
Bo
Thanks, thats how im doing it.
But i dont know when to save changes. I am making a datatype in a user control, but i dont know when to save.
I'm trying to save on postback when Request["__EVENT"] is empty but i dont know if it is the right way.
Hi Tito,
I think you will be best off with a custom save button in your usercontrol aswell :-)
- Bo
is working on a reply...