You are here: Foswiki>Tasks Web>Item2178 (28 Aug 2010, GeorgeClark)Edit Attach

Item2178: WebRss does not expand title correct

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: AndreUlrich
Waiting For:
Last Change By: GeorgeClark
The $web is missing. Also the non existing space between the title tag prevents link expansion.

original:
<title>$topic</title>

Possibly not standard conform

This one works also with MichaelDaum topic title function but it adds an "a" tag to the title. Validator says it´s standard conform and it works with Firefox and Safari.

<title> $web.$topic </title>

DBCachePlugin

It works best with GETTOPICTITLE which comes with DBCachePlugin:

<title>$percntGETTOPICTITLE{\"$web.$topic\"}$percnt</title>

-- AndreUlrich - 29 Sep 2009

I don't understand the issue. The RSS feed appears to correctly link to the topic, and the feed is "web specific", so what value is adding the $web to the title? The links are all correct even without the $web prefix. Is this actually still an issue? The links are inserted explicitly now and don't depend upon a space.

As far as using the DBCachePlugin, That's not a core extension so we can't use it in the default RSS feeds.

-- GeorgeClark - 12 Aug 2010

Can´t remember the situation correctly, but I guess it was important to display also the web within the RSS title. This is of course only important when you are using more than one web for content, but should be default as Foswiki supports this out of the box.

If this was only needed by me this could be closed.

-- AndreUlrich - 28 Aug 2010

So if I understand this correctly, on the WebRss search,
format="<item rdf:about=\"%SCRIPTURL{"view"}%/$web/$topic\">$n  <title>$topic</title>$n  <link>%SCRIPTURL{"view"}%/$web/$topic</link>
should be changed to:
format="<item rdf:about=\"%SCRIPTURL{"view"}%/$web/$topic\">$n  <title>$web.$topic</title>$n  <link>%SCRIPTURL{"view"}%/$web/$topic</link>

This results all topics being prefaced with the webname, which is a bit noisy in a single web rss feed, which is the default. I'll ask others for some feedback.

As far as the non-linking because of the missing space, I believe that has been fixed. I can't find any examples of it happening.

Arthur, could I get your opinion on this one?

-- GeorgeClark - 28 Aug 2010

After some IRC discussion. A multi-web RSS is somewhat rare, so it's better to not add the web as a default.

If we were to distribute a "SiteRss" topic that aggregated multiple webs, that would be the place take this approach. So changing this Task to "No Action required"

-- GeorgeClark - 28 Aug 2010

ItemTemplate edit

Summary WebRss does not expand title correct
ReportedBy AndreUlrich
Codebase
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r5 - 28 Aug 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy