I am trying to duplicate a page layout. I have a custom layout for my products.view. However, I want a different layout for each product. I've built a custom layout that I would like to copy and change for the other products.
Is it possible to copy the layout location inside the XML file and just make another layout of same sort? I've spent hours now trying to figure it out. However, I cannot get it working. It seems some values are stored in the database, so I probably need to use the visual builder?
I am trying to duplicate a page layout. I have a custom layout for my products.view. However, I want a different layout for each product. I've built a custom layout that I would like to copy and change for the other products.
Is it possible to copy the layout location inside the XML file and just make another layout of same sort? I've spent hours now trying to figure it out. However, I cannot get it working. It seems some values are stored in the database, so I probably need to use the visual builder?
Thanks
Chris
Hello Chris!
Why don't you use the layouts tab on the product details page?
I want a specific layout for each product. However, that layout was a lot of work to build. Having to manually build it for each product, is a lot of work. Isn't there a way to copy it? I've tried it through the layouts.xml file, however, the containers seem to have unique IDs that are stored in the database. So those need to be created somehow?
I have another question. Is it possible to add a new template for a block? For the Testimonials block, there is just 1 template in the default theme. Is it possible to create a another template?
I have another question. Is it possible to add a new template for a block? For the Testimonials block, there is just 1 template in the default theme. Is it possible to create a another template?
You can extend this schema with the addon or edit the file directly
I'm not getting it right.
I want to be able to create “addons/discussion/blocks/testimonials1.tpl†for instance and then make my new template for that block. I want to display the testimonials in the page header and it must have a different layout from the rest. However, I'm not sure how to do this.
I want to be able to create “addons/discussion/blocks/testimonials1.tpl†for instance and then make my new template for that block. I want to display the testimonials in the page header and it must have a different layout from the rest. However, I'm not sure how to do this.