views:

344

answers:

1

Hi, So i got a problem and really haven't found any solution to this so i hope someone here can help me.

I got site with book navigation module. My front page has multiple blocks in it with each block containing book navigation and listing contents of different book.

The problem is that I need to open book pages from one block in a new window and this new window should only contain node's body data without template stuff surrounding it.

I've managed to open these node's in new window with custom module listing only book pages from given book but i can't figure out how to print only node body without template stuff in this new window.

My solution for opening book pages in new window is target="_blank" so it might not be the "drupal way" to do this so any tips for this would be appreciated, too.

Thanks a lot in advance!

A: 

If all you want is body text without any of the other "stuff", I recommend overriding the default theme for the content type you're using. You can either do it by hand (writing the PHP), or the Content Template (Contemplate) module might work.

Nicholai
But this behavior should happen only for users who aren't logged in.So basically i need to be able to specify custom template for contents of the popup window. It shouldn't affect rest of the same content types. Only the ones opened in a new window.
Jorgos