Page 1 of 1

serendipity_printComments

Posted: Fri Dec 12, 2008 6:29 am
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"}

Re: serendipity_printComments

Posted: Fri Dec 12, 2008 11:59 am
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

Posted: Fri Dec 12, 2008 3:06 pm
by Don Chambers
Thanks Garvin.... you were fast on that one. I will test it asap.

What purpose does the parameter "block" serve?

Posted: Fri Dec 12, 2008 4:42 pm
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

Posted: Fri Dec 12, 2008 4:47 pm
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.

Posted: Fri Dec 12, 2008 4:51 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Posted: Fri Dec 12, 2008 6:09 pm
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.