|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Absolute Paths in Content for Better Rss CompatibiliyI've been using RSS a lot more lately, encouraging my clients to, and
making my sites more RSS friendly. I've only recently realized that inline relative URLs break in a lot, if not most, feed readers. Do you encourage content editors to use absolute urls because of this? Do you use absolute urls in your own blogs? Shai p.s. I've been using magecache combined with CCK's functionallity for setting a separate display choice for RSS to size images smaller for RSS feeds, presuming a lot of the RSS audience is on a mobile device. Way awesome. _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
|
|
Re: Absolute Paths in Content for Better Rss CompatibiliyI know this is approaching it from the other end, but I had a patch
ready for Aggregator which converted all relative paths in images and links to absolute paths: http://drupal.org/node/395764 It stalled at a certain point, and I haven't really gone back to finish it off (coding style fixes and a few unit tests needed). However, the logic is simple enough that feed readers could easily implement similar methods. Or, for that matter, Drupal could while outputting feeds. Brian Shai Gluskin wrote: > I've been using RSS a lot more lately, encouraging my clients to, and > making my sites more RSS friendly. > > I've only recently realized that inline relative URLs break in a lot, > if not most, feed readers. Do you encourage content editors to use > absolute urls because of this? Do you use absolute urls in your own > blogs? > > Shai > p.s. I've been using magecache combined with CCK's functionallity for > setting a separate display choice for RSS to size images smaller for > RSS feeds, presuming a lot of the RSS audience is on a mobile device. > Way awesome. > _______________________________________________ > consulting mailing list > consulting@... > http://lists.drupal.org/mailman/listinfo/consulting > _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
|
|
Re: Absolute Paths in Content for Better Rss CompatibiliyShai,
Thanks for the heads up on that. I always assumed RSS readers automatically converted relative paths to absolute ones. This issue comes up a lot for me with sites that export content to an email program, so it's similar. To make sure that no relative paths go out via email --in images or links -- I run the content through a simple str_replace in the template.php file, basically looking for href="/ and src=/ and replacing it with the full path. Sam On Wed, Sep 23, 2009 at 12:39 AM, Shai Gluskin <shai@...> wrote: I've been using RSS a lot more lately, encouraging my clients to, and _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
|
|
Re: Absolute Paths in Content for Better Rss CompatibiliyLook at this project, a php script that converts the relative url to absolute url. might be of use to you, I am using this for my module FeedAPI ImageGrabber
http://sourceforge.net/projects/absoluteurl
-- Regards, Nitin Kumar Gupta http://publicmind.in/blog/ On Wed, Sep 23, 2009 at 6:59 PM, Sam Cohen <sam@...> wrote: Shai, _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
|
|
Re: Absolute Paths in Content for Better Rss CompatibiliyBrian
You don't have to wait for this to get in core, given the rigor that core must have. Make it a contrib module. This will solve the issue for most people. See this project, which massages the RSS in the other way (removes markup) http://drupal.org/project/cleanfeeds On Wed, Sep 23, 2009 at 8:22 AM, Brian Vuyk <brian@...> wrote: I know this is approaching it from the other end, but I had a patch ready for Aggregator which converted all relative paths in images and links to absolute paths: -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
|
|
Re: Absolute Paths in Content for Better Rss CompatibiliyKhalid,
I may do that. It's more a matter of available time. The patch would be core-ready with a few tests and coding style fixes, although I suspect with the code freeze it would be for D8. But yes, it could definately be done as a contrib project in the meantime. Brian Khalid Baheyeldin wrote: > Brian > > You don't have to wait for this to get in core, given the rigor that > core must have. > > Make it a contrib module. This will solve the issue for most people. > > See this project, which massages the RSS in the other way (removes markup) > http://drupal.org/project/cleanfeeds > > > > On Wed, Sep 23, 2009 at 8:22 AM, Brian Vuyk <brian@... > <mailto:brian@...>> wrote: > > I know this is approaching it from the other end, but I had a > patch ready for Aggregator which converted all relative paths in > images and links to absolute paths: > > http://drupal.org/node/395764 > > It stalled at a certain point, and I haven't really gone back to > finish it off (coding style fixes and a few unit tests needed). > However, the logic is simple enough that feed readers could easily > implement similar methods. Or, for that matter, Drupal could while > outputting feeds. > > Brian > > > Shai Gluskin wrote: > > I've been using RSS a lot more lately, encouraging my clients > to, and > making my sites more RSS friendly. > > I've only recently realized that inline relative URLs break in > a lot, > if not most, feed readers. Do you encourage content editors to use > absolute urls because of this? Do you use absolute urls in > your own > blogs? > > Shai > p.s. I've been using magecache combined with CCK's > functionallity for > setting a separate display choice for RSS to size images > smaller for > RSS feeds, presuming a lot of the RSS audience is on a mobile > device. > Way awesome. > _______________________________________________ > consulting mailing list > consulting@... <mailto:consulting@...> > http://lists.drupal.org/mailman/listinfo/consulting > > > > _______________________________________________ > consulting mailing list > consulting@... <mailto:consulting@...> > http://lists.drupal.org/mailman/listinfo/consulting > > > > > -- > Khalid M. Baheyeldin > 2bits.com <http://2bits.com>, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > ------------------------------------------------------------------------ > > _______________________________________________ > consulting mailing list > consulting@... > http://lists.drupal.org/mailman/listinfo/consulting > _______________________________________________ consulting mailing list consulting@... http://lists.drupal.org/mailman/listinfo/consulting |
| Free embeddable forum powered by Nabble | Forum Help |