Hello Themers,

I'm taking advantage of the new theming available in v6, and have come across this curious issue:

I have an ".info" file with regions, and stylesheets defined.

I have a bunch of style sheets.

So far, so good: Whenever I change the ".info" file, I go in and clear the theme registry by one of the many methods available. Really, this is much nicer than what has come before!

Now, I want to move the name-and-slogan region. I copy the page.tpl.php from the modules/system folder, move the <div> to where I want it, and reset the theme registry.

No dice. It's like its not even there!

What am I missing?

I should note: Other than page.tpl.php, there are no php files in this theme.

Thanks in advance!

Comments

Anonymous’s picture

deleted

uotonyh’s picture

Yeah, I was hoping that there was a simple answer, but I guess I'll have to dive into the code and figure out whats going on.

Anybody other good ideas out there?

- T

uotonyh’s picture

You *must* have engine = phptemplate in your .info file for Drupal to recognize your page.tpl.php file.

I guess that makes sense.

Cheers!

rambleonme’s picture

I'm having a similar problem. I'm entirely new to theming and want to start out with a VERY Simple custom theme from scratch. But it seems like drupal is simply not seeing my page.tpl.php file. It just defaults to its own, but it DOES see my style sheet. Please help!

I've created a folder at sites>all>themes>mytheme. It contains style.css, page.tpl.php and mytheme.info. My info file reads:
name = mytheme
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css

I've gone to administer>site building>themes and enabled, configured and made default "mytheme" but no dice! It just won't use my page template file.

Any thoughts?

theWhippet’s picture

I'm having the exact problem also. My styles are being recognised but my page.tbl.php file is not. I am also new to Drupal and am finding theming to be not as pleasant as expected.

Now, I have read many articles about this and many seem to have different answers. For example some people are saying that clearing their cache works for them and some say it doesn't. Some people say that switching themes will kick this issue into life. The guy above is saying that he just had to add 'engine = phptemplate' to his info file - which fixed it for him.

I have tried all these things and still, my page is hardly ever recognised. The couple of times it has been recognised, I have then gone on and made some changes to the same file - just to see that the Drupal system hasn't recognised these new changes.

As I have said... I am new to Drupal and am certainly no expert. However, it seems to me that countless people are having issues with Drupal 6.x and theming. Has Drupal got worse since the last version? Surely theming and page recognition should be child's play (to a certain degree).

If anyone else has any other suggestions on how they get round this page recognition / theming issue it would be great to hear your thoughts.

Always willing to listen and to learn by my own (and others) mistakes.

kiteglinton’s picture

I'm experiencing this now with Drupal 6.6. I've sussecfully created new templates before; I've tried the above but still the new page.tpl.php might as well not exist. Has anyone come up with a definitive solution?

ziobudda’s picture

Install and active devel module.

Now go in devel section (admin) and empty the cache.

I suggest you to install Administration Menu that Insert all Drupal Admin Menu at the top of the page and if you have Devel module this Administration Menu module give you the possibility to delete cache directly from the page where you are.

I have noticed that drupal set the cache even if the cache is disabled. I don't understand why but I had a similar problem with acquia theme and user-profile page. My user-profile.tpl.php file was not recognized. After deleted the cache all works.

M.

PS: Sorry for the bad bad bad english.

Freelancer Senior Drupal Developer -- http://www.ziobuddalabs.it

ghankstef’s picture

That did it for me too after clearing the cache again

shaunak’s picture

Im facing the same problem. I have cleared the cache, yet it wouldn't work.
The problem seems to temporarily resolve if you set some other theme and revert back.

Katy J’s picture

I found this on another forum, which solved it for me - I had done some enthusiastic tidying up and deleted /themes/engines thinking it was just another theme, but in fact it's the part that makes
engine = phptemplate in your .info file meaningful. (You will also need this line).

When I fished this out of the recycling bin, put it back in it's proper location and then cleared the cache I was laughing. Not literally, but I was pretty happy :)

Hope this helps someone else.