Changing Template

Permalink
Is it just me? In 5.6 when you change a template from Rightside bar to Full Width (for exmaple) the content stays but the layout changes... which is fine.

However in 5.7 if you do this the content disappears... does anyone have any suggestions or if this is a know problem and is being fixed?

pixelpatch
 
hutman replied on at Permalink Reply
hutman
This depends on which Theme you are using, with the Elemental theme if you witch from the Full to the Right Sidebar the main content stays in the page. It all depends on the theme and the area naming convention what happens to the page.
pixelpatch replied on at Permalink Reply
pixelpatch
It's a custom theme.

For the side bar I use the snippets

<code>
<?php $a = new Area('Heading'); $a->display($c); ?>
<?php $a = new Area('Content'); $a->display($c); ?>
<//code>

and for the full width page I use

<code>
<?php $a = new Area('Main Heading'); $a->display($c); ?>
<?php $a = new Area('Content'); $a->display($c); ?>
</code>

Will that make a difference? That makes it extremely inflexible should you change a template in the future. I'm pretty sure that it worked in 5.6 or am I wrong?
hutman replied on at Permalink Reply
hutman
If the area names match up, like yours does for "Content" then the blocks that were added to that area should stay there when you switch, but the blocks in the "Heading" won't because the area name doesn't match.

I tested this with 5.7.4.2 and that's what I found using the Elemental Theme.
pixelpatch replied on at Permalink Reply
pixelpatch
Yeah I think you are right... it's a little frustrating but I guess it has to know what to pick up
pixelpatch replied on at Permalink Reply
pixelpatch
It's a custom theme.

For the side bar I use the snippets

<code>
<?php $a = new Area('Heading'); $a->display($c); ?>
<?php $a = new Area('Content'); $a->display($c); ?>
<//code>

and for the full width page I use

<code>
<?php $a = new Area('Main Heading'); $a->display($c); ?>
<?php $a = new Area('Content'); $a->display($c); ?>
</code>

Will that make a difference? That makes it extremely inflexible should you change a template in the future. I'm pretty sure that it worked in 5.6 or am I wrong?