serendipity_printComments

Discussion corner for Developers of Serendipity.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

serendipity_printComments

Post by Don Chambers »

I'm not looking for this just yet, but have begun to wonder about the possibility of having more than a single comments.tpl if specified.

any chance of seeing something like this?

{serendipity_printComments entry=$entry.id mode=$entry.viewmode template="whatever.tpl"}
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_printComments

Post by garvinhicking »

Hi!

Yeah, sure. I just committed it to SVN, you can now use the new parameters "template" and "block". Can you try it out?

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Thanks Garvin.... you were fast on that one. I will test it asap.

What purpose does the parameter "block" serve?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Without specifying that, the output of the printcomments funktion is parsed to {$COMMENTS} - if ever the case could happen that multiple comment templates are parsed, using the same block might overwrite the previous one. So this is more a function for forward compatibility.

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

It also occurs to me that we should have this same template capability with serendipity_printTrackbacks - I really should have mentioned that in my first request.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

sure, I didn't think of it either. Also committed!

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Yippie!!! Another new feature for 1.4!!!

I'll try to get this stuff tested... might not be today, but I will see what I can do.
=Don=
Post Reply