Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 06, 2010 @ 06:43
    Kurniawan Kurniawan
    0

    Managing List of Products

    Anyone knows how to managing a list of products in umbraco ?

    create a list.. and I have to query it on my user control in .NET

     

    Thanks

  • Sascha Wolter 615 posts 1101 karma points
    Aug 06, 2010 @ 11:25
    Sascha Wolter
    0

    Hi Kurniawan,

    it depends a bit on how many products you have. Usually and the most straightforward way would be to create a node structure like

    - Products (id=1233)     //datatype e.g. 'Products'
      - Product 1                //datatype e.g. 'Product'
      - Product 2
      - ...

    In your .Net control you can then do something like

    Node products = new Node(1233);
    foreach (Node product in products.Children){
    string name = product.Text; //it might be .Name...
      //do something
    }

    Does that answer your question?

    Sascha

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 09, 2010 @ 01:30
    Kurniawan Kurniawan
    0

    OK... That's very good solution.

    Sorry I'm pretty new with Umbraco...

    I ll try that soon..

    Thanks

  • Sascha Wolter 615 posts 1101 karma points
    Aug 09, 2010 @ 14:11
    Sascha Wolter
    0

    Hi Kurniawan,

    no need to apologize, hope it works for you.

    All the best,
    Sascha

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies