Re: [Radiant] ? about using paperclipped images in backgrounds with css
On Sep 11, 2008, at 9:50 PM, Mohit Sindhwani wrote: [EMAIL PROTECTED] wrote: On Fri, 2008-09-12 at 03:38 +0800, Mohit Sindhwani wrote: [EMAIL PROTECTED] wrote: Is there any way to use an image that's been uploaded to a site with paperclipped in a stylesheet for use as a background image? I have tried to do url(r:assets:image title=image_x /) but it isn't working for me. The image has been attached to the stylesheet page. Is there anything else I need to do to get that to work? Are paperclipped images stored in the file system or in the db? I could not find the image I had uploaded in the file system. I'll look again. In the past I had used radius tags to specify background images when I was using the old page_attachments extension: r:find url=/assets/r:assets:url name=image_x.png //r:find . Just an FYI. I was surprised that the same kind of thing doesn't work with paperclipped. No biggie, I'll just find a different way to specify bg images. It looks like there was a bug in the r:assets:url / tag, which caused it not to rendor. I refactored a bug of the tags last month and screwed that up. Pull from Github, the new version is pushed. But once you attach the image to the stylesheets page, you still need to insert it using the (now working) r:assets:url / tag. You can drag and drop to the image to get the tag, then modify it to your needs. I just tested this out and it now works. The images are stored on the file system. I had been experimenting with the db, but it is a bit slow and then I found the Paperlip plugin, which I really like. Look in your public folder for an assets folder, they are all there. Keith ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] ? about using paperclipped images in backgrounds with css
[EMAIL PROTECTED] wrote: Is there any way to use an image that's been uploaded to a site with paperclipped in a stylesheet for use as a background image? I have tried to do url(r:assets:image title=image_x /) but it isn't working for me. The image has been attached to the stylesheet page. Is there anything else I need to do to get that to work? Hi Nate I seem to remember that this is because you can't use a radius tag inside that. On the other hand, what I have used before is to link to the image once so that I can get the actual URL for it and just use that URL directly. I'm not sure if there is a better way. Cheers, Mohit. 9/12/2008 | 3:38 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] ? about using paperclipped images in backgrounds with css
[EMAIL PROTECTED] wrote: On Fri, 2008-09-12 at 03:38 +0800, Mohit Sindhwani wrote: [EMAIL PROTECTED] wrote: Is there any way to use an image that's been uploaded to a site with paperclipped in a stylesheet for use as a background image? I have tried to do url(r:assets:image title=image_x /) but it isn't working for me. The image has been attached to the stylesheet page. Is there anything else I need to do to get that to work? Are paperclipped images stored in the file system or in the db? I could not find the image I had uploaded in the file system. I'll look again. In the past I had used radius tags to specify background images when I was using the old page_attachments extension: r:find url=/assets/r:assets:url name=image_x.png //r:find . Just an FYI. I was surprised that the same kind of thing doesn't work with paperclipped. No biggie, I'll just find a different way to specify bg images. Ah, I forgot! My note was related to using page attachments. I've not used paper clipped, and when I used Page Attachments, I had some problem similar to yours when I tried to use it within the stylesheet. However, at other places, it worked OK, I think. I'm sorry I just didn't notice Paperclipped! Hopefully, you'll get an answer soon :) Cheers, Mohit. 9/12/2008 | 3:50 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant