I'd like to put a block in the main content region (regions[content] = 'Main Region'). I'd like it to go at the same level as #block-system-main, but I can't see how to do this. In fact, I don't see how #block-system-main is generated at all. Basically I can't seem to edit Aurora's page.tpl.php to make it so I can add a block under the article tag (while having a sidebar on the left).

So I've added a sidebar_first region that goes inside the and I'd like the layout inside of main to be a 2 column layout- sidebar on the left #block-system-main on the right with blocks able to be put below it.

Suggestions?

Comments

iamcarrico’s picture

Status: Active » Postponed (maintainer needs more info)

Are you trying to add a block within #block-system-main? That is impossible, as that is a block itself. If you add another block to the 'content' region, it will be adjacent to the #block-system-main. Generally, we recommend doing this sort of work within panels anyway, as it will give you greater flexibility. It is the best practices with 7.x-3.0+

ricksta’s picture

I can't even see where #block-system-main comes from. Why is the main area where content goes a block? Can I make it not a block? Most themes I've used make this very easy without having to resort to loading panels. (not a dis on Aurora as I like it so far). Thanks. I'm confused with why it shows regions[content] in the .info file. where is that region, or what is that, then?

iamcarrico’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

the #block-system-main is a Drupal block, and has nothing to do with Aurora. This is how all the main page content gets printed out in the block system. It _should_ be coming from this line:

<?php print render($page['content']); ?>

Provided you are printing out the "Main page contentt" block, within the 'content' region. A region is just the place where blocks get printed out, so if you are printing out the main page content in the 'content' region, then it will appear there as a block.

ricksta’s picture

Why is the main page content a block? Is this something new? I've never heard of that before. So is there no way to do what I'm trying to do other than to use panels?

iamcarrico’s picture

This is how Drupal 7 has always worked, as far as I know. Sidebars, in Drupal's sense, are meant to be outside the main content area--- and in the sidebar regions. This can also be done within panels, which will write its own layout within the main content region. This is how Drupal 7 theming works, and there is no way around it.

ricksta’s picture

shocked and awed. I'll be moving the sidebar outside of the main, then. thanks.