I have a website with some products and a hidden "Settings" node with color schemes with structure like /colorschemes/scheme-1/color-1 etc. Then I use this content on the product page to present some options.
Now there's a need for something new which is to create pages under the product page for the colors of the relevant scheme. So I want to create a page like /products/product-1/color-n for each /colorschemes/scheme-1/color-n. All the data in this page will be grabbed from the existing product and color nodes. So I need this page created "on the fly" somehow.
If I'm not mistaken, the obvious solution would be to pass a querystring like ?color=color-n but I would like something more consistent with my url path, plus some products are related to multiple schemes so it gets a bit complex.
I'd be grateful if someone could point me to the right direction!
As I understand you need to create products structure, each product can be referenced to one or few color schemas?
You can use MultiNodeTree Picker on the product page, on each product you will be able to choose one or few colors.
I'm sorry I totally missed your reply. I apologize for not being clear, I already have the the structure fixed with Archetype. My page already works, I just wanted to create subpages (for SEO reasons actually) and wanted to avoid querystrings, so I used a custom rewrite rule. I just didn't think it very much when I asked, sorry about that.
Reusing a node structure?
Greetings everybody,
I have a website with some products and a hidden "Settings" node with color schemes with structure like /colorschemes/scheme-1/color-1 etc. Then I use this content on the product page to present some options.
Now there's a need for something new which is to create pages under the product page for the colors of the relevant scheme. So I want to create a page like /products/product-1/color-n for each /colorschemes/scheme-1/color-n. All the data in this page will be grabbed from the existing product and color nodes. So I need this page created "on the fly" somehow.
If I'm not mistaken, the obvious solution would be to pass a querystring like ?color=color-n but I would like something more consistent with my url path, plus some products are related to multiple schemes so it gets a bit complex.
I'd be grateful if someone could point me to the right direction!
I'm on 7.1.x currently btw :-)
Thanks,
Pantelis
Hi Pantelis,
As I understand you need to create products structure, each product can be referenced to one or few color schemas? You can use MultiNodeTree Picker on the product page, on each product you will be able to choose one or few colors.
THanks
Hi Alex,
I'm sorry I totally missed your reply. I apologize for not being clear, I already have the the structure fixed with Archetype. My page already works, I just wanted to create subpages (for SEO reasons actually) and wanted to avoid querystrings, so I used a custom rewrite rule. I just didn't think it very much when I asked, sorry about that.
Thank you very much for your reply!
You are welcome, Pantelis.
is working on a reply...