Reorganize the template files

Created on 27 October 2011, about 13 years ago
Updated 27 March 2023, over 1 year ago

I love Omega so far, but I'm encountering two difficulties with the way that it's setup:

Location of $title

The $title is printed out in region--content.tpl.php which doesn't have access to $node. That makes it difficult to change or remove the
$title

by content type. I think it would be better to put $title in the node templates or else make $node accessible in region--content.tpl.php.

I want to do something like this, which is currently impossible:

<?php if($node->type!='review'): ?>
    <h1 class="title" id="page-title"><?php print $title; ?></h1>
<?php endif; ?>

I'd be happy if I could even access the $title in CSS by node type, but that isn't possible either, since no node type CSS is output until after $title.

Or maybe add $vars['node'] = $theme->page['node']; to the template.php? I've been searching how to override that function in template.php, but haven't found a way yet.

Breadcrumb

The breadcrumb gets printed in the sidebar. Most sites will want that above the content area to the right of the left sidebar. There are some cumbersome workarounds with the Delta module, but I don't think they are good for SEO. (explanation)

It would be easier to build subthemes if breadcrumbs were in the most common spot by default...

Just a couple of feature suggestions...

Feature request
Status

Active

Version

5.0

Component

Code

Created by

🇺🇸United States Z2222

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024