Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tito 314 posts 623 karma points
    Oct 14, 2011 @ 17:24
    Tito
    0

    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:

     

    1. On the "Catalog" document type, create a new tab property called "manage products".
    2. Create a new data type that renders all i need (the dropdown and the gridview)
    3. Add a property of this new data type to the "Catalog" document type on the new tab.
    4. 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.
    Any help is apreciated.
    Thanks!

     

     

     

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Oct 17, 2011 @ 19:30
    Bo Damgaard Mortensen
    0

    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

  • Tito 314 posts 623 karma points
    Oct 18, 2011 @ 08:26
    Tito
    0

    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.

     

     

     

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Oct 18, 2011 @ 13:46
    Bo Damgaard Mortensen
    0

    Hi Tito,

    I think you will be best off with a custom save button in your usercontrol aswell :-) 

    - Bo

Please Sign in or register to post replies

Write your reply to:

Draft