I noticed that instead of using "return" you can just use "echo" and drupal will basically skip the entire page.tpl.php file and return only the content you've echoed out.

1) Is this the "proper" way to do that?
2) Is there a way to include the styles with that? (globalizing and echoing out $styles doesn't work)

Comments

aburrows’s picture

nope, all that will do is display the what ever your echo'ing at the top outside of the theme layer.
You could use panel pages and select ignore regions. Or create a tpl specifically for that page

ayesh’s picture

Chuck Norris would remove all extra regions in the theme except the content region and define it in theme's .info file.

work77’s picture

I thought drupal had to always "see" page.tpl.php. How do you make it ignore page.tpl.php but see what I've defined in the .info file?