# Images, stylesheets and scripts - OH MY!

**URL:** <https://www.ruby-forum.com/t/images-stylesheets-and-scripts-oh-my/64866>\
**Category:** Radiant CMS\
**Created:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/images-stylesheets-and-scripts-oh-my/64866 "2006-08-15T14:19:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike-moscow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Post date:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/images-stylesheets-and-scripts-oh-my/64866/1 "2006-08-15T14:19:56Z")

</div>

Hello all.

have been playing with radiant for the last couple of days. And  
although I have NO formal training/schooling in web application  
devlopment I have found it relatively easy to get it installed and  
working. I have a pretty good grasp of the admin interface and logic  
behind pages, snippets and layouts. I was also able to figure out how  
to insert images by putting the images into the public/images  
directory and refering to them there throught xhtml.

Please forgive me as I am only a designer and a total newbie to  
rails, but one thing does confuse me. I am aware that john and all  
the other contributors are developing a system for uploading ‘assets’  
like scripts, images and flash through the admin interface. But if I  
want to add those elements now how would I go about it?

For instance, If I had more than one css stylesheet that I would like  
to use how do I refer to it? Do i just put it in the public/  
stylesheets directory and refer to it there through the xhtml? Or do  
I create a new layout AND a new Page with css via the admin interface?

The same for javascripts… it seems logical to put them in the  
javascript folder and just refer to them from the xhtml. How about  
for swf’s? I searched all over the radiant mailing list archives and  
google and I really couldnt find anything.

What is the official recommendation then to add stylesheets,  
javascritps, swf’s and images to radiant websites?

thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![mike-moscow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Post date:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/images-stylesheets-and-scripts-oh-my/64866/2 "2006-08-15T14:19:57Z")

</div>

Michael,

Items that are text, like javascripts or CSS stylesheets can be created  
as  
regular pages. If you installed it with one of the premade sites,  
you’ll  
get the Stylesheet layout for free, which just dumps the content and  
sets  
the content-type as text/css. If not, it’s easy to create them, just  
make  
sure to click “More”, and set the appropriate content-type.

As for images and Flash files, until their patch/upgrade comes through,  
you’ll have to manually upload them into the public/ directory, either  
under  
public/images/ or a directory of your choosing.

Sean
