Answer the question
In order to leave comments, you need to log in
[Drupal] How to create a theme with custom regions?
Created a topic called second
name = Second
description = 123
core = 7.x
regions[myregion] = My Region
This version is not compatible with Drupal 7.x and should be replaced.
<?php if ($page['myregion']): ?>
<div id="myregion">
<?php print render($page['myregion']); ?>
</div>
<?php endif; ?>
Answer the question
In order to leave comments, you need to log in
The second question was "resolved", if the hosting is located on an external machine, then this problem simply does not exist. If you use denver, then everything was decided by "deleting" the standard page.tpl.php.
The first question is still interesting.
PS: Although it would be more correct to clear the cache through the Drupal admin panel, and not in the browser. Then, probably, you can not touch the standard page.tpl.php.
In your case, the problem is that by creating your own region with your own name, you override all Drupal regions by default ... Therefore, if you create your own regions with custom names, then you must also define the basic Drupal regions, such as Content, Leftsiderbar etc.
For new regions, it is better to use the Panels module - create regions directly from the admin panel without any conflicts
for Drupal 7 it is critical to have the [content] region in the theme
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question