plug in print entries and comments

Creating and modifying plugins.
Post Reply
pruttel
Posts: 2
Joined: Wed Jan 03, 2007 9:19 am

plug in print entries and comments

Post by pruttel »

Is there a plugin for printing the entries and comments to an entry ?

Example

ENTRY TEXT 1
...COMMENT 1.1
...COMMENT 2.1
...COMMENT 3.1

ENTRY TEXT 2
...COMMENT 2.1
...COMMENT 2.2
...COMMENT 2.3

ETC

Thanks for your answer. I checked in the forum, but did not find any results on this topic.

peter
pruttel
Posts: 2
Joined: Wed Jan 03, 2007 9:19 am

update on print matter

Post by pruttel »

okay, I found a plugin serendipity_event_blogpdf that saves the entries as pdf. But unfortunatly without the comments of users.

Does anyone know whether there is a plugin that adds this functionality (also saving the comments to the entries).

Thanks,
Pruttel
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

This sounds like something that could be done with a custom template. Switching templates might be a pain, though.

I don't think there's a plugin that does that right now. And would you really want *all* entries, or only the latest?

Anybody got any other ideas?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

As judebert indicates, just editing your entries.tpl would do. You can just remove the checks that read "{if $entry.is_extended}". These if-structures indicate whether something is only emitted on the detail pane or not. So in detail pane comments are printed. If you remove the IF-check, then comments would also be shown in the overview page.

This might get very long and ugly on overview pages then, though.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Uh-oh. I'm starting to think again.

You could have Smarty template include all the comments, but hide them with CSS. Then you could have a separate printing stylesheet that exposed them (like the Google Maps pages that have separate stylesheets for printing).

That would be a change to the specific template's style.css, entries.tpl, and index.tpl (for the separate stylesheets). Right?
Judebert
---
Website | Wishlist | PayPal
Post Reply