Closed (fixed)
Project:
Earthish
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Aug 2011 at 22:10 UTC
Updated:
25 Aug 2011 at 18:34 UTC
Jump to comment: Most recent file
My page-nodetype files aren't overriding. Am I missing something?
SR
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pagetempprepro-1256902-4.patch | 801 bytes | ishmael-sanchez |
Comments
Comment #1
ishmael-sanchez commentedThat's actually not baked into the D7 version of the theme but I just committed a fix to the template.php and tested it on my local machine.
Comment #2
SuperRookie commentedI just implemented the updated template.php file and a couple of things happened. I believe that it now needs page--nodetype.tpl.php files now, as my front page broke until I provided it with one for that content type, and now on any content type that doesn't have its own template I get the following errors:
Notice: Undefined index: node in earthish_preprocess_page() (line 12 of /home/........../template.php).
Notice: Trying to get property of non-object in earthish_preprocess_page() (line 12 of /home/......./template.php).
Any ideas?
SR
Comment #3
ishmael-sanchez commentedComment #4
ishmael-sanchez commentedOk so my preprocess function was hastily created and I didn't account for pages without a node type so I added a condition which makes sure the node object exists before adding this template suggestion. I will commit this fix shortly to the dev branch.
Comment #5
ishmael-sanchez commentedhttp://drupalcode.org/project/earthish.git/commit/76abfe8
Comment #6
SuperRookie commentedWorked! Thanks so much! Now for me to spell out that more complicated problem I mentioned earlier.
Comment #7
ishmael-sanchez commented