.tpl.php templates in omega

Events happening in the community are now at Drupal community events on www.drupal.org.
johnny thunder's picture

Dear friends,
Sorry about this awkward question but I'm still trying to make my way into Omega.
I was wondering how .tpl.php templates worked in Omega.
I need to apply some changes to a region (add several divs in it). In other themes, I would make the changes into this region's tpl.php file. But in Omega, the system seems to be different : there are no tpl.php files available. How do we make this kind of changes?
Another example is a block created with Views. In other themes, I would find a tpl.php file corresponding to this block (named block-views-xxx.tpl.php) and I could customize this template. In Omega, I can't find this template, so I'm wondering: how can I customize my block?
I'm probably missing something very simple here. Thank you for your help on this matter.

Comments

template files

fndtn357's picture

there are template folders available for creating template files. but ultimately alpha sets the stage - omega adds some nice css - you use global.css to override (if necessary) the provided css. in the interface for theme-settings you can uncheck certain theming files that are turned on automatically. text, forms, etc.
really most of it is up to you. regions are turned on and off within the theme-settings page for your particular theme. extra regions get added in the .info file. zones are

Have you created a subtheme?

badge's picture

Have you created a subtheme yet? If so, you'll find the template files in themes/omega/alpha/templates and themes/omega/omega/templates. If you copy those that you need to themes/your_theme/templates you can edit them and they'll take precedence over the omega templates. Remember that if you're creating sub tpl.php files (such as node--node_type.tpl.php), you'll need to have a copy of the standard type in your themes templates folder (so nond--node_type.tpl.php needs to be accompanied by the standard node.tpl.php file too).

Unless your theme requires

banghouse's picture

Unless your theme requires specialized coding you should expect that most of your page structure/layout can be done using the UI. http://drupal.org/node/1298694

If you need variations of page layouts then use Delta: (http://drupal.org/project/delta) Delta allows you to create different versions of your subtheme’s configuration settings. This gives you the ability to apply alternative layouts as a reaction in Context. More about context: http://drupal.org/node/1341730

Omega's approach to theming is different from other base themes. If you are accustomed to theming in tpl.php files it might take a minute to adjust to Omega but IMHO getting used to Omega is not hard and worth every ounce of effort.

If you want a jumpstart to your Omega education do the following:

1. RTFM: http://drupal.org/node/819164 <--- The Omega Documentation Team put a lot of time and effort into making sure this guide steps a new user through the learning process as quickly and simply as possible. It is outlined in such a way that if you start at the beginning and step through each page in the handbook you will be up and running in no time flat.

2. Join #drupal-omega on IRC http://drupal.org/irc/setting-up <--- You do not need to be a web ninja to figure this out. It's easy and gives you direct access to the Omega Team. We are kind, helpful and almost always available. Drop in and say hi!

Omega Framework

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: