Copied to clipboard

Flag this post as spam?

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


  • Andrea 3 posts 23 karma points
    Apr 08, 2013 @ 12:05
    Andrea
    0

    How to: create a Products DB, search and gallery for each product?

    I am new on Umbraco but I am an experienced senior developer in ASP.NET Web Forms and MVC (C#).I would like to have some guide lines on how to implement my requirements (and if it is possible to do it) with Umbraco.I have a quite simple DB with some products that can be searched through categories (DB Indexes), each product must have a gallery of images and / or videos.As usual there must be "paged" search result page with all the products but must be possible to choice a category to show only products of that kind (always paged).It is possible to do it with Umbraco?Do I have to use add-ons?Do I have to use an e-commerce add-on (though without using the shopping chart)?Can I programming that functionality and where I can find guidelines to do it?Many thanksandrea

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 08, 2013 @ 12:23
    Dan Diplo
    0

    The first thing I would do is familiarise yourself with Umbraco and how you create standard pages with it - see http://umbraco.com/help-and-support/video-tutorials.aspx. In particular, understand Document Types which define the fields the type of page can store. Once you do this you will realise that it probably makes more sense to recreate your products database as Umbraco node (pages) rather than try and integrate it. Umbraco is a content-management system and products are just a type of content.

    However, if you really must keep your existing database, then you can either create a standard UserControl and add this as a Macro (in WebForms Umbraco) or use C# and Razor in MVC to render out your data as you would in a standard MVC site.

  • Andrea 3 posts 23 karma points
    Apr 08, 2013 @ 12:35
    Andrea
    0

    Hi,
    thank you very much for your reply.
    I am studying Umbraco, I already know all the fundamentals of it.

    I would like to understand the best practices.

    I have to create a completely new products DB but I need searching functionalities (paging the result) and a gallery of images and / or videos for each product.
    Is not a big catalogue so performance is not a problem, what is the best way to proceed?

    More in general if I would build more complex data with relations wich would be the best way?
     
    Anyway another big requirements is to give to the user a simple way to manage its products: products must be added, deleted and updated by the end user.

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 08, 2013 @ 12:49
    Dan Diplo
    0

    I would define a Document Type in Umbraco that has all the properties for your product - name, description, price, images etc. Then I would create each product as a page using a similar structure to below. (You can use the multi-node tree picker to associate multiple images and/or videos stored in the Media Libary with each product).

    -Home

    -- Products

    --- Product One

     

    --- Product Two

     

    You can then use the API to get a list of products, iterate over them and pull in the images. I find the easiest way is using the Razor scripting language and C#.

    You can use Examine to peform powerful searches, too.

     

  • Andrea 3 posts 23 karma points
    Apr 08, 2013 @ 13:33
    Andrea
    0

    Thank you very much!

    I am going to proceed (and study) in the direction you indicated.

    Very kind of you.

    andrea

Please Sign in or register to post replies

Write your reply to:

Draft