It all depends how many products you are looking to have and if they are already stored in another database / change frequently etc.
If you are looking for a a simple collection of products that are stored within Umbraco what you should do is the following:
1) Create a document type called "Products" - This will be your top level product section and will contain all your "Product"
2) Create a document type called "Product" - This will be used for your products, so you need to add all the properties you require that are going to be used to describe each product, i.e. title / description / price / weight / size etc.
3) On the "Products" document type you should allow it to have the "Product" as it's children ( The homepage should allow "Products" as it's child but not "Product" )
4) Now create a Macro, if you use one of the standard macros you should find one of them is an example that cycles through the child nodes.
5) Place that macro on your "Products" template
6) Create the content pages, i.e. go to the content section and right click / create - Products and then do the same below that for each of your "product" nodes. ( the actual products )
If you get this far, you are now well on your way to getting a list of products on a page... I suggest you get that far and then come back with any questions :)
This would depend on your needs - does your product list require categories? And if so, can a product fall into multiple categories?
The simplest way to do this would be to set it up as if it was a news list etc, with few types of nodes
Product Category/List Document Type
Name
Intro Text
Banner Image
Product Document Type
Name
Description
Price
Tags
etc
Then you need a bit of xslt to just list all the "products" and put it in a macro on the "list" document type.
You can see an example of a simple version of this approach by installing http://our.umbraco.org/projects/business-website-starter-pack and checking out the "News Area" and "News Item" document types and the newsList.xslt xsl file. You could get a simple version of a product listing by adapting the code used there.
The products should be placed in different "categories" - And then on te frontpage i need to list these "categories" - When clicking on a categori, you get a list of products, and then clicking on a product, you should get a detailed view of the product...
Best practice for creating a products list and detail view?
Hey everyone...
Im pretty new to Umbraco, and was wondering on the best practices is for building a product list and a detailed view of the product ?
Hi Nicky,
It all depends how many products you are looking to have and if they are already stored in another database / change frequently etc.
If you are looking for a a simple collection of products that are stored within Umbraco what you should do is the following:
1) Create a document type called "Products" - This will be your top level product section and will contain all your "Product"
2) Create a document type called "Product" - This will be used for your products, so you need to add all the properties you require that are going to be used to describe each product, i.e. title / description / price / weight / size etc.
3) On the "Products" document type you should allow it to have the "Product" as it's children ( The homepage should allow "Products" as it's child but not "Product" )
4) Now create a Macro, if you use one of the standard macros you should find one of them is an example that cycles through the child nodes.
5) Place that macro on your "Products" template
6) Create the content pages, i.e. go to the content section and right click / create - Products and then do the same below that for each of your "product" nodes. ( the actual products )
If you get this far, you are now well on your way to getting a list of products on a page... I suggest you get that far and then come back with any questions :)
Cheers,
Chris
Hi Nicky
This would depend on your needs - does your product list require categories? And if so, can a product fall into multiple categories?
The simplest way to do this would be to set it up as if it was a news list etc, with few types of nodes
Product Category/List Document Type
Product Document Type
Then you need a bit of xslt to just list all the "products" and put it in a macro on the "list" document type.
You can see an example of a simple version of this approach by installing http://our.umbraco.org/projects/business-website-starter-pack and checking out the "News Area" and "News Item" document types and the newsList.xslt xsl file. You could get a simple version of a product listing by adapting the code used there.
Things can start to get complicated pretty quickly with shops, so all will depend on your individual requirements. There is also http://www.codeplex.com/commerce4umbraco (beta) and http://www.ucommerce.dk/ (commercial) if your needs outgrow simple lists.
Post back if you continue to have trouble or more questions
Dan
Hey again...
The products should be placed in different "categories" - And then on te frontpage i need to list these "categories" - When clicking on a categori, you get a list of products, and then clicking on a product, you should get a detailed view of the product...
is working on a reply...