Last Monday I released a first version of Node Page Template.
This little module makes it possible to configure a page template per content type and per node. It also makes a node template suggestions based upon that page template.
Default theme function makes an Node template suggestion per content type and per node, and this adds a Page template suggestion. When 'Default' is selected, there is no additional suggestion.
More information can be found at http://drupal.org/project/node_page
Happy theming.
Comments
Node page template
being the first is of a great importance, it's gonna be very useful for web designers, if ir works fine
the information you have provided is very good & enough to start with a project
Thanks again
webdesign
?
Can you explain more about what this module does?
Can I use this to override the standard page.tpl.php so that for example, I can display only the node contents without the headers, sidebars, etc?
Yes, you can. This module
Yes, you can. This module allows you to select an other page template for a node (type). In a page template you set your headers, sidebars, footer, ...
I need some more
I need some more clarification.
Without this module, theme developer shows these suggestions for .tpl files:
page-nodetype.tpl.php < page.tpl.php.
With the module enabled a new drop down box appears on the nodetype edit form to select either default or 'page' for the template, and the suggestions are now:
.tpl.php < page-nodetype.tpl.php < page.tpl.php
Does this module then allow the use of some arbitrarily named .tpl.php file? If so, do you just create it, put in the theme directory and then it shows up in the template select list?
Yes, just put a
Yes, just put a page-something.tpl.php in your theme folder and you will be able to select it as your page template.
Great! Before this module
Great! Before this module how might I have accomplished this?
I have nodes with dozens of CCK fields but only want selected ones to show up in a page that opens in a lightbox, without headers, sidebars, etc., but with all the fields, a picture gallery, etc, custom styled.
Oddly, when you append the URL with 'lightbox', as in: ../content/node/1234/lightbox2, the sidebars disappear but the header remains.
This is very timely as I was just digging into how to get around this problem.
You can make any page
You can make any page template suggestion by appending a value at $vars['template_files'] in the hook_preprocess_page or theme_preprocess_page
i tried the
i tried the hook_preprocess_page but, i doesnt work ?? can you explain it in details.