I have a problem where I cannot figure out how to solve.
Lets say i have a company with products. I want to be able to add new products, delete products and edit current products.
I also want to list these projects on a product page.
I know how to add pages and so on. But does this require that i need to create a single page for each product? And then get all childpages information?
I'd suggest you create child nodes for each product. Depending on how many products there are you might also want to think about having Category containers. Something like the structure below:
Products
Shoes
Shoe Product A
....
Shoe Product Z
Tops
Trousers
You'd create the following document types.
Products (the container)
Category (the subcontainer)
Product (the end product).
The thing I think you're not sure about is you can have content nodes without a template - e.g. you don't necessarily need to have a page at /products/shoes/shoe-product-a but you can just list all products from the /products/ page.
There is a good example using news articles on the basic tutorial. Work through that and it should all make more sense!
I have a further question on this topic.. Is it instead possible for me to just add one page (ex. a product page) where i send like the ID of the item and present the information there dynamically depending on the product linked?
Adding multiple content with tab information
Hey guys!
I have a problem where I cannot figure out how to solve.
Lets say i have a company with products. I want to be able to add new products, delete products and edit current products.
I also want to list these projects on a product page.
I know how to add pages and so on. But does this require that i need to create a single page for each product? And then get all childpages information?
I am greatful for any suggestion!
Hi Mattias,
Welcome to Umbraco!
I'd suggest you create child nodes for each product. Depending on how many products there are you might also want to think about having Category containers. Something like the structure below:
You'd create the following document types. Products (the container) Category (the subcontainer) Product (the end product).
The thing I think you're not sure about is you can have content nodes without a template - e.g. you don't necessarily need to have a page at /products/shoes/shoe-product-a but you can just list all products from the /products/ page.
There is a good example using news articles on the basic tutorial. Work through that and it should all make more sense!
https://our.umbraco.org/documentation/Tutorials/Creating-Basic-Site/
https://our.umbraco.org/documentation/Tutorials/Creating-Basic-Site/Articles-Parent-and-Article-Items
HTH
Steve
Hey Steve!
Thanks for your tips!
I have a further question on this topic.. Is it instead possible for me to just add one page (ex. a product page) where i send like the ID of the item and present the information there dynamically depending on the product linked?
Hi,
Yes, I assume you mean with your product catalogue stored externally? You're probably looking at a custom controller then.
https://our.umbraco.org/documentation/Reference/Routing/custom-controllers
https://our.umbraco.org/documentation/Reference/Routing/custom-routes
Kind regards
Steve
is working on a reply...
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.