Closed (fixed)
Project:
Omega
Version:
7.x-3.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2011 at 10:12 UTC
Updated:
28 Jan 2013 at 07:04 UTC
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
Comment #1
cellar door commenteddo 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.
Comment #2
Anandyrh commentedI 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
Comment #3
rick hood commentedI 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...
Comment #4
PCateNumbersUSA commentedHave 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?
Comment #5
cellar door commentedThe 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.
Comment #6
PCateNumbersUSA commentedThe 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.
Comment #7
cellar door commentedPCateNumbersUSA - 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!
Comment #8
danny englander@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
Comment #9
hanspln commentedIf 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.
Comment #10
cellar door commentedhanspln - 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
Comment #12
mp_praveen commentedReally I'm not getting how to override default page.tpl.php please anybody explain properly
Comment #13
Anandyrh commented@mp_praveen, If you are using Context and Delta modules, then I guess there is no need for page.tpl.php file.