DenRaf's Blog

  • Contact

Contact
View Raf Nijskens's profile on LinkedIn
OpenSource
Linux
Powered by Drupal, an open source content management system
Get Firefox
Fosdem
Visit Inuits Technical home

Locations of visitors to this page

Tags in TagCloud

6 acer ADP1 Android apache automaticmenu caching cats Centos closed source cron Debian dell Dell R200 deploy Dream driver drupal drupalcron eclair edit faceted_search fedora flat jscalendar Fosdem funambol G1 imagefield_gallery litejazz menu_tree module multiple domains mysql node_page O2Micro old openfire OSD otrs password trigger password_trigger plutado Ports presentation recover response header rpm svn sync syncml tagadelic ubuntu user filter user_import wordpress wordpress 2.3 wp2drupal xmlsitemap zabbix zimbra
more tags
Home » Blogs » DenRaf's blog

New module: Node Page Template

Submitted by DenRaf on Thu, 09/03/2009 - 20:44
  • [View]

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.

  • DenRaf's blog
  • Add new comment
Tags:
  • drupal
  • drupal
  • module
  • node_page

16 reponses to "New module: Node Page Template"

1. Hi, it appears this module

Submitted by Anonymous (not verified) on Thu, 03/18/2010 - 19:06.

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.

  • reply

2. its great thank you

Submitted by Anonymous (not verified) on Sat, 02/06/2010 - 13:42.

its great thank you

  • reply

3. I have not tested first

Submitted by Kate Hanley (not verified) on Wed, 02/03/2010 - 12:22.

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

  • reply

4. Templates give you a general

Submitted by John321 (not verified) on Tue, 05/11/2010 - 08:08.

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.

  • reply

5. are these working for my blog

Submitted by onder (not verified) on Thu, 01/28/2010 - 23:03.

are these working for my blog on wordpress? please explain that thanks

  • reply

6. Sorry, this module is only

Submitted by DenRaf on Sun, 02/14/2010 - 13:15.

Sorry, this module is only for drupal.

  • reply

7. Very interesting and

Submitted by seo services pakistan (not verified) on Sun, 01/10/2010 - 21:08.

Very interesting and informative site! Good job done by you guys, Thanks

  • reply

8. Node page template

Submitted by Bishoyking (not verified) on Fri, 12/25/2009 - 20:06.

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

  • reply

9. ?

Submitted by Anonymous (not verified) on Thu, 09/10/2009 - 20:53.

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?

  • reply

10. Yes, you can. This module

Submitted by DenRaf on Thu, 09/10/2009 - 22:44.

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, ...

  • reply

11. I need some more

Submitted by Anonymous (not verified) on Fri, 09/11/2009 - 00:44.

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?

  • reply

12. Yes, just put a

Submitted by DenRaf on Fri, 09/11/2009 - 17:21.

Yes, just put a page-something.tpl.php in your theme folder and you will be able to select it as your page template.

  • reply

13. Great! Before this module

Submitted by Anonymous (not verified) on Fri, 09/11/2009 - 00:09.

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.

  • reply

14. You can make any page

Submitted by DenRaf on Fri, 09/11/2009 - 17:24.

You can make any page template suggestion by appending a value at $vars['template_files'] in the hook_preprocess_page or theme_preprocess_page

  • reply

15. i tried the

Submitted by hotmail email (not verified) on Thu, 11/05/2009 - 06:18.

i tried the hook_preprocess_page but, i doesnt work ?? can you explain it in details.

  • reply

16. Agreed.

Submitted by pepper spray keychain (not verified) on Sun, 10/24/2010 - 20:14.

Yeah, I don't really understand this either.

  • reply

Guided search

Click a term to initiate a search.

Categories

  • drupal (26)
  • Linux (6)
  • SysAdmin (6)
  • Uncategorized (5)
  • Linux-tools (3)

Date authored

  • 2010 (5)
  • 2009 (10)
  • 2008 (27)
  • 2007 (11)

TagCloud

  • drupal (26)
  • Ports (7)
  • cron (6)
  • drupalcron (6)
  • 6 (3)
  • OSD (3)
  • zimbra (3)
  • cats (2)
  • Fosdem (2)
  • funambol (2)
  • more...

Recent blog posts

  • OSD2010: Day 2
  • OSD2010: Day 1
  • OSD2010: Pre notes
  • Howto: Android 2.1 on G1/ADP1/Dream
  • Updated look
  • Zimbra monitoring with zabbix
  • New module: Node Page Template
  • AutomaticMenu module for drupal 6
  • Drupal synchronisation
  • Imagefield_gallery module for drupal 6
more

Recent comments

  • Thanks for the nice blog. It
    50 weeks 3 hours ago
  • I prefer this updated
    50 weeks 4 days ago
  • Agreed.
    1 year 14 weeks ago
  • Working on this
    1 year 16 weeks ago
  • Thanx for tutorial. IT'S
    1 year 17 weeks ago
  • Amon Ra recovery tool
    1 year 20 weeks ago
  • Please help me
    1 year 25 weeks ago
  • This is so dumb
    1 year 26 weeks ago
  • I've installed it on my
    1 year 29 weeks ago
  • I am also having the same
    1 year 30 weeks ago

Syndicate

Syndicate content
I love Smashing Magazine!
Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.