Page 1 of 1

adress the comment and not the article in rss-feed

Posted: Mon Jul 24, 2006 10:28 pm
by stm999999999
Hello,

If you get an rss/atom-feed of the comments, every rss-item has a link to the article. When you click on it, you will go to the article, but not to the comment directly. If the article have many comments, I think this is not so good.

With the following change you go directly to the comment you see in your feed-reader:

on every (default-)theme-feed-tpl

replace every

Code: Select all

{$entry.feed_entryLink}
with

Code: Select all

{$entry.feed_entryLink}{if $is_comments}#c{$entry.commentid}{/if}

And, to do this with trackbacks , too: Insert an id on every trackback (on the comments this is default now)

trackbacks.tpl:

Code: Select all

{foreach from=$trackbacks item=trackback}
	<a id="c{$trackback.id}"></a>
    <div class="serendipity_comment">

you can see it in action: http://blog.stephan.manske-net.de/feeds ... backs.rss2

Re: adress the comment and not the article in rss-feed

Posted: Tue Jul 25, 2006 11:04 am
by garvinhicking
Hi!

Good suggestion, committed!

Best regards,
Garvin