[consulting] Absolute Paths in Content for Better Rss Compatibiliy
nitin gupta
nitingupta.iitg at gmail.com
Wed Sep 23 13:52:05 UTC 2009
Look 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 at samcohen.com> wrote:
> Shai,
>
> 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 at content2zero.com>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 at drupal.org
>> http://lists.drupal.org/mailman/listinfo/consulting
>>
>
>
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/consulting/attachments/20090923/a09d792f/attachment.htm>
More information about the consulting
mailing list