I find a simple way to do this in all my assets. I edited "asset_tags.rb" file from paperclipped extension. I replace line 186 with "url = request.protocol + request.host_with_port + asset.thumbnail(size)", and it works for me.
If it's not a good idea, let me know, please. Thanks, Rafael Souza [email protected] +55 84 8844-9171 On Fri, Jul 24, 2009 at 9:07 AM, Keith Bingman <[email protected]>wrote: > Rafael > > There are a couple of ways to do this. The easiest would be to set a new > value for the image url in the Settings ext. or in Radiant::Config. > > Just add a new setting for 'assets.url' with the value ' > http://mydomain.com/:class/:id/:basename:no_original_style:extension' and > you will be good to go. I just tried this and the new src attribute indeed > has the domain in it. This is the default path, with the domain added. You > can modify the path if you want, but of course you will have to move the > existing assets accordingly. > > These settings were added when I updated Paperclipped to use Amazon S3, but > of course work if you are using the file system too > > Another way would be to not use the <r:image /> tag, but rather a more > verbose version like this: > > <img src="http://mydomin.com/</r:url />" alt="<r:title /> " or something > along these lines. > > Let me know if that helps. > > Keith > > > > Keith Bingman > > [email protected] > http://keithbingman.com > > > > > > On Jul 23, 2009, at 11:52 PM, Rafael Souza wrote: > > Anyone is using feedburner to manage feeds? >> >> I am having problems with images (I use paperclipped extension to manage >> images) when generating the feed. >> >> The image "src" attribute is like "/assets/(id)/(nome_do_arquivo)", but I >> think for feedburner it must be " >> http://mydomain.com/assets/(id)/(nome_do_arquivo)<http://mydomain.com/assets/%28id%29/%28nome_do_arquivo%29> >> " >> >> Thanks, >> >> Rafael Souza >> [email protected] >> +55 84 8844-9171 >> _______________________________________________ >> Radiant mailing list >> Post: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
