[PRINT]-function to print <DIV>-content block

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

[PRINT]-function to print <DIV>-content block

Post by Igor »

Hi there,

I made a site with only DIV-content blocks. In the template mainblock I defined three DIV-content blocks (content_main, sidebar and subnav). When using the [PRINT]-function I only want the content of the content_main-block to be printed. The function prints the whole mainblock content. Can this be changed? If yes, where?

The three DIV-blocks are nested, so it's impossible to place sidebar and subnav in the left or right template block.

Who faced this problem too?
Igor
hendrik250874
Posts: 32
Joined: Mon 16. Feb 2004, 13:10
Location: Belgium
Contact:

Post by hendrik250874 »

I haven't really faced the problem, but I know you can achieve this by merely adapting your stylesheet.

It has something to with media=screen or print, and then you can drop all the html you don't want to print.

If I can, I'll try and look it up...
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

Thanks pepe, this works. Great!
Igor
Post Reply