Page 1 of 1
rss aggregator extension
Posted: Sat Nov 25, 2006 11:31 am
by robert
I would like to use rss aggregator to fill in some tag-rss-feeds of my del.icio.us accounts to some categories of my blog.
The problem is, that the entry doesn´t contain the url of the website i tagged.
Would it be possible to include this in the entry text?
Regards
Robert
Re: rss aggregator extension
Posted: Sun Nov 26, 2006 1:29 am
by garvinhicking
Hi!
You might need to apply the template patch file that ships with the plugin? It inserts {$entry.properties....} links into the default entries.tpl.
HTH,
Garvin
Posted: Sat Dec 02, 2006 9:27 pm
by robert
I´m a real Newbie...
I tried to alter "theme-patch.diff" - see the red line. But nothing happens. Could someone give me a hint or post the right code. Thanks in advance.
diff -ru default/entries.tpl isoplanet/entries.tpl
--- default/entries.tpl 2005-03-15 00:04:33.000000000 +0100
+++ isoplanet/entries.tpl 2005-04-29 20:26:00.000000000 +0200
@@ -10,7 +10,7 @@
{/if}
{foreach from=$dategroup.entries item="entry"}
- <h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>
+ <h4 class="serendipity_title">{$entry.properties.ep_aggregator_feedname}: <a href="{$entry.link}">{$entry.title}</a> <span style="font-size: 6pt">(<a href="{$entry.properties.ep_aggregator_articleurl}">Original</a>)</span></h4>
<div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
{if $entry.categories}
@@ -24,7 +24,11 @@
{/if}
<div class="serendipity_entry_body">
+ {if $entry.body == ""}
+ <a href="{$entry.properties.ep_aggregator_articleurl}">Read Article</a>
+ {else}
{$entry.body}
Read The Article: <a href="{$entry.properties.ep_aggregator_articleurl}">Link</a>
+ {/if}
</div>
{if $entry.is_extended}
@@ -36,7 +40,7 @@
{/if}
<div class='serendipity_entryFooter'>
- {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
+ {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.properties.ep_aggregator_feedname}</a>
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
Posted: Mon Dec 04, 2006 9:55 am
by garvinhicking
Hi!
Okay; the .diff files only shows what you need to add to your templates "entries.tpl" file. The file itsel fdoes nothing, you must not edit it!
The .diff file shows which lines of the original entries.tpl need to be removed prefixed with a "-". All lines that you need to insert are prefixed with a "+".
There are tools that apply .difff files automatically, but I'd rather not confuse you with that.
Best regards,
Garvin
Posted: Mon Dec 04, 2006 10:40 pm
by robert
Oh

I´m a real Newbie.
Thanx for this help - I will try it soon.