Summary | Add universal link() method to Horde_Feed |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Enhancement |
State | Accepted |
Priority | 1. Low |
Owners | |
Requester | sebastian.radish (at) gmx (dot) de |
Created | 10/15/2012 (4594 days ago) |
Due | |
Updated | 01/07/2013 (4510 days ago) |
Assigned | 10/25/2012 (4584 days ago) |
Resolved | |
Milestone | |
Patch | No |
please find a short/uggly workaround. It avoid that link refers to
horde site but instead force all link to atom/rss site.
--- horde4/lib/Block/Feed.php.old 2013-01-07 07:28:11.000000000 +0100
+++ horde4/lib/Block/Feed.php 2013-01-07 07:29:03.000000000 +0100
@@ -69,7 +69,7 @@
if (++$count > $this->_params['limit']) {
break;
}
- $html .= '<a href="' . $entry->link . '"';
+ $html .= '<a href="' . (strlen($entry->link) ?
$entry->link : $this->_params['uri']) . '"';
if (empty($this->_params['details'])) {
$html .= ' title="' .
htmlspecialchars(strip_tags($entry->description())) . '"';
}
Priority ⇒ 1. Low
State ⇒ Accepted
Queue ⇒ Horde Framework Packages
versatile link() method for feed entries that transparently handles
protocol differences. There already is some link() implementation in
Horde_Feed_Atom, but it doesn't work because it's implemented as if it
was running on a entry, while the class handles a feed instead.
I can provide access to a demo installation which includes this atom
feed in a horde portal block. Clicking the link leads nowhere.
State ⇒ Feedback
Milestone ⇒
State ⇒ Unconfirmed
Patch ⇒ No
Queue ⇒ Horde Base
Summary ⇒ Atom Feeds on Dashboard have emtpy links
Type ⇒ Bug
Priority ⇒ 1. Low
have only a Horde 3 installation to test:
If you a _atom_ feed block to your dashboard, the links are all empty
(href="").
The problem is, that atom links are stored like
<!--a75c305b1c0a6022--><link href="http://some/where"/>
whereas in RSS feeds they are stored like
<!--a75c305b1c0a6022--><link>http://some/where</link>
Can anybody confirm this problem on Horde 4? I already had a look at
the Horde 4 sources and it doesn't seem to be fixed.