page.tpl.php file is missing on omega sub theme, I also copied the page.tpl of alpha to omega, but did not work for me.

I wanted to disable the page title for one of my content type and alter few more things on it. please let me know how to.

Thanks,
AnAnD

Comments

cellar door’s picture

do disable the page title for content types look to use Context and Delta Blocks. Disable the page title in your theme settings, enable the block in delta blocks, and place the title (or not place it) based off the various conditions available to context. Not sure if that helps much but that'd be my solution.

Anandyrh’s picture

I also have other custom fields to display, basically whole layout would get changed based on few conditions. so someone please help me to use page.tpl file for this theme.

Thanks,
AnAnD

rick hood’s picture

I am having the same issue. Working with node.tpl.php no problem, just as one normally would. But structure of page.tpl.php is all different from normal (BTW page.tpl.php is found in omega/alpha/templates).

Understand use of context + delta modules to do this, but:

a. Overkill if not needed a lot.
b. Puts settings in database I would just as soon keep in files.

I guess I will go with context + delta, but wish I did not have to.

For those who need it, good video here:
http://himerus.com/blog/himerus/omega-intro-2-delta-module-contextual-th...

PCateNumbersUSA’s picture

Have the same issue. Using content and delta are overkill. All I need it access to page.tpl.php for the html5 sub theme. Anyone know why it isn't included?

cellar door’s picture

The tpl files are located in the omega/templates directory. If you need to edit them create a copy of the template in your subtheme/templates directory and edit as needed.

The above solution was one requiring context and delta blocks. But if you just want to move the page title site-wide you can just enable delta and use the delta blocks to move some of the elements around.

PCateNumbersUSA’s picture

The Omega ver. 3 theme doesn't have a page.tpl.php in the omega/templates directory though. Ver. 2 did, and the alpha sub-theme does, but not the full Omega ver.3 theme. The alpha page.tpl.php doesn't work when placed in the Omega ver. 3 templates folder either.

cellar door’s picture

PCateNumbersUSA - the page.tpl.php was broken up into pieces now in 3.x and you'll find them all in the same spot but they're more specific now. If you want to move your page title via the tpl you'll need to go into region--content.tpl.php and remove it first and place it wherever you'd like in the other tpl files.

The same thing can be achieved however through the UI by disabling the page title in your subtheme settings, enabling the delta blocks module, going to your admin/config/user-interface/delta-blocks menu and enabling the block, and placing it via the system block setup or context. Either one will allow you to move your page title. Just make sure that if you're using the tpl method to copy/paste both the region--content.tpl.php and the one you're moving the title into from omega/templates into your subtheme/templates folder so you're not modifying the core and lose it when updating the theme later.

Cheers!

danny englander’s picture

@Cellar Door - perfect, thanks exactly what I was looking for. I also used this method in combo with this: http://drupal.org/node/1326142#comment-5917392

hanspln’s picture

If you only need to hide it on a few pages (like the front page), then
.front#page-title {display: none;}

should be less overkill than delta+context. After all, if you disable it in settings, this is what happens anyway.

cellar door’s picture

Status: Active » Fixed

hanspln - Good point. If you want to remove on one page then it's doable through CSS otherwise the tpl file can be edited to take it out and placed elsewhere with a block.

Closing out

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mp_praveen’s picture

Really I'm not getting how to override default page.tpl.php please anybody explain properly

Anandyrh’s picture

@mp_praveen, If you are using Context and Delta modules, then I guess there is no need for page.tpl.php file.