Hi, I want to add a new region in a Layout, but I can't get it to work.
I have added in the .tpl
<?php print $content['topexplorar']; ?>
And in the file .info of layout
regions[topexplorar] = topexplorar
I have cleared cache and it does not work.
Thank you for your help
Comments
I'm not quite sure why it is not showing up as those should be the minimum requirements. Here is what I did for a fork of a core layout template.
I did the
inner
bit to facilitate some styling I wanted, but it is not essential. The other thing is to make sure the template is in the right place and is selected for the Layout in question.It should be in
backdrop_web_root/layouts/my_custom_template/
And make the name distinctive enough so you know you have selected it
I have an override of the Layout in my theme, and entered there <?php print $content['newregion']; ?>
But now I have put the code in the original .tpl of the layout and it works.
I don't know if this is right, since in a future upgrade of the system this should be lost I imagine.
I was in a similar situation; I just cloned the core layout templates I was interested in and gave a slightly different name and put in the layouts folder and made my changes.
Thank you, I will give it a try.