Forum OpenACS Q&A: RSS Feed Length and Image in Lars Blogger

Can someone tell me how I can change the length of the individual entries in the Lars Blogger RSS feed as well as the image? I am sure it is very easy and someone else who is rationing simple problem solving skills at the moment is interested in a 1. 2. 3. list for this too.

P.S. This should be part of the admin web UI.

Collapse
Posted by Joel Aufrecht on
AFAIK this feature is not yet implemented.
Collapse
Posted by Andrew Grumet on
Yo Carl.  If you're willing to edit code, search for the string "truncate_len" in packages/lars-blogger/tcl/rss-procs.tcl.  You want to change the line that looks like this

set truncate_len 100

to

set truncate_len 500

We probably want to turn this into a package parameter.

Collapse
Posted by Jarkko Laine on
I don't know if I'm talking about the same thing, but something very similar has annoyed me a bit with the Lars Blogger RSS feed. Namely, it puts something like X first characters to the description tags and then "...". The whole entry is then in the content tag.

Now at least all the aggregators I've tested on OS X only show the description in their entry pane. This is to say the least annoying since one of the biggest reasons why I like newsreaders is that they automatically pull the entries I want and I can then read them offline e.g. when sitting in a train. Reading only the first line is not quite doing the job.

Of course this is actually fault of those newsreaders since they don't show the whole item (I don't know if they even parse the content tag). But as long as the situation is this, I would be very grateful if every blogger would put the whole entry inside the description tag. Of course it needs first be a package parameter.

This applies to RSS 1.0 of course, which we are using at the moment. If (and when) we are moving on to atom, this problem won't probably occur anymore.

For the sake of an example here's how Lessig blog (done with Movable Type) does the job (notice that the description is the same as content, only with less formatting and without encoding):


<item rdf:about="http://www.lessig.org/blog/archives/001709.shtml">
<title>mandated telescreen upheld</title>

	<description>
From the dissent of this amazing opinion: "They approve an ordinance
which literally forces a “Big Brother” style
 telescreen to look over one’s shoulder while accessing the Internet."
</description>
<cc:license rdf:resource="http://www.creativecommons.org/licenses/by/1.0"/>

	<content:encoded>

From the dissent of this amazing opinion: "They approve an ordinance which literally forces a “Big Brother” style telescreen to look over one’s shoulder while accessing the Internet."

</content:encoded> <link>http://www.lessig.org/blog/archives/001709.shtml</link> <dc:subject>bad law</dc:subject> <dc:creator>Lessig</dc:creator> <dc:date>2004-01-31T09:09:58-08:00</dc:date> </item>
Collapse
Posted by Carl Robert Blesius on
Thanks Andrew,

I went and edited the code and restarted the server. Worked fine, but in the process I discovered that images in an entry are not included in the generated feeds 😟.

Just noticed that Lars added it as a parameter that can now be set using the admin UI (now all I have to do is update my server).

http://xarg.net/tools/cvs/change-set-details?key=63812F5CCEE3FB1E9391DB7639436347A23CF48F

(Thanks Lars)

As for the feed image, that was MUCH easier than expected... it turned out it was already a parameter in the admin interface:  http://openacs.based/blog/admin/