I need two different layouts for bundles. For this I created an alternative page layout in the page_layout folder. I am able to access the page layout in the backend of the bundle what works like a charm.
Now I need to have an alternative XML-definition for the bundle-layout.
The original file is called:
I would like to use an alternative, like:
In this new file I would like to add f.e. a new body-class with:
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <attribute name="class" value="konfigurator" /> ...
But how do I get the connection between the page-layout-file and the bundle-layout. I guess it is really easy but I really do not know how to solve this.
To be clear: I would like to have 2 different layouts for bundle (like a/b test). These both layouts should have different classes, CSS- and JS-resources.
I would really appreciate some hints.