Understanding Layouts
Posted: Wed Mar 21, 2012 8:34 pm
Hey All,
Ok so I thought I had a good grasp of the layout system, but clearly I'm missing something, and here's what I mean.
In the default setup, the Checkout layout has a route of
checkout/
It was my understanding that this would mean that any route called that was a child of the checkout process would use the Checkout layout. For instance adding a route of checkout/success would have no affect as success is already routed to the Checkout layout since it's a child of the checkout process.
So if I wanted to create different layouts for checkout/cart and checkout/success I would need to change the existing Checkout layout and add all the child routes that I wish to remain in that layout and move checkout/success and checkout/cart to either a different existing layout, or create a new layout just for them.
So I set the Checkout layout to checkout/checkout and create new layouts Checkout Success with a route of checkout/success, and Checkout Cart with a route of checkout/cart.
I then went to my Bestseller module and added the module to the Checkout Cart layout with a placement of Content Bottom and enabled it. But when I go now to checkout/cart I still have the original Checkout layout. And the same applies to my new Checkout Success layout as well.
What am I not understanding?
Is there some interior override thats taking place that I can't find? Is it a bug, or am I just not getting it?
Thanks for your help.
-Vince
Ok so I thought I had a good grasp of the layout system, but clearly I'm missing something, and here's what I mean.
In the default setup, the Checkout layout has a route of
checkout/
It was my understanding that this would mean that any route called that was a child of the checkout process would use the Checkout layout. For instance adding a route of checkout/success would have no affect as success is already routed to the Checkout layout since it's a child of the checkout process.
So if I wanted to create different layouts for checkout/cart and checkout/success I would need to change the existing Checkout layout and add all the child routes that I wish to remain in that layout and move checkout/success and checkout/cart to either a different existing layout, or create a new layout just for them.
So I set the Checkout layout to checkout/checkout and create new layouts Checkout Success with a route of checkout/success, and Checkout Cart with a route of checkout/cart.
I then went to my Bestseller module and added the module to the Checkout Cart layout with a placement of Content Bottom and enabled it. But when I go now to checkout/cart I still have the original Checkout layout. And the same applies to my new Checkout Success layout as well.
What am I not understanding?
Is there some interior override thats taking place that I can't find? Is it a bug, or am I just not getting it?
Thanks for your help.
-Vince