I just downloaded the latest D7 and I am trying to get my old theme converted over.
First problem I encountered is the lack of HTML details in the page.tpl.php as I had in D6. What was the purpose of this? I can think of a few reasons, but none out-weigh the importance of having full control over the template from a developer stand point (or designer).
What if I want to hardcode some JS into the template and not bother installing a module or using a hook to accomplish this task? Is it possible to override the html.tpl.php on a theme by theme basis? There are many instances where I would much prefer to have kept all my HTML togather as one (despite many modules producing HTML), a design decision I do not really agree with, but as long as I can override this default template in modules/system/html.tpl.php - that should fine.
Any ideas???
Cheers,
Alex
Comments
This is the way to
This is the way to go:
http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p...
CTO Sparkfabrik - http://www.sparkfabrik.com
ILDN Founder - http://www.ildn.net
Just copy paste it to your theme
If all you want is to override that file, just copy paste it to the templates folder of your themes directory.
And modify the file as you want!
Always remember that you will have to rebuild the theme registry for Drupal to recognize the template.
I just got started with D7,
I just got started with D7, as well, and the first thing I noticed was the html.tpl.php file in the Bartik theme. This is a great change, because now, we can have the same persistent layout across all pages, including the maintenance page and other pages which do not use the default page template. It definitely helps with my themes, but I can see how it might be an unwelcome change for others.
---
I have created and maintained countless Drupal-powered sites and have made heavy modifications to modules on a site-by-site basis. I am an illustrator, a game developer, and a web developer. I also stream on Twitch in my spare time.
the purpose
http://drupal.org/node/469242