New module: Node Page Template
Submitted by DenRaf on Thu, 09/03/2009 - 20:44
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.



15 reponses to "New module: Node Page Template"
1. Hi, it appears this module
Hi,
it appears this module only picks up templates from the theme root. The genesis theme has a structure of theme_root/templates/page (where the page.tpl.php template resides). It's easy enough to make a couple of edits to the .module file but, would be good if the documentation mentioned this.
Anyway, thanks for the module...most useful.
2. its great thank you
its great thank you
3. I have not tested first
I have not tested first version of Node Page Template myself. I have just visited the recommend post and looking to use it. Web Designers Dubai
4. Templates give you a general
Templates give you a general layout with graphics and css.It provides an attractive background to attract people to concentrate and can easily get what the theme behind this presentation or slide .Template design is depends on seo also.For more details about seo go here seo services.Here you can find many tips for designing template as seo friendly.
5. are these working for my blog
are these working for my blog on wordpress? please explain that thanks
6. Sorry, this module is only
Sorry, this module is only for drupal.
7. Very interesting and
Very interesting and informative site! Good job done by you guys, Thanks
8. 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
9. ?
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?
10. 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, ...
11. 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?
12. 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.
13. 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.
14. 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
15. i tried the
i tried the hook_preprocess_page but, i doesnt work ?? can you explain it in details.