ASPX templates
Version 4.x > ASPX templates > Basic Site Development - Images/Javascript/CSS View modes: 
User avatar
Member
Member
cshanks-tmw.co - 6/19/2009 5:03:42 AM
   
Basic Site Development - Images/Javascript/CSS
Hi there,

Newbie Kentico Developer here!

I have set up a Blank ASPX site and get how it all goes together, templates, creating pages, menu etc etc - it's great!

Few things I am stumbling with:

Images
Where do I put my template images? I've read about the App Themes, but I can't seem to create just a folder in there to place the images into? Do I just put them under CMSTemplates/<SiteName>/Images ??

And how do I then refrence them on my page, and within my CSS stylesheet?

Javascript
I have a JQuery .js file I would like to include in my project - where do I put it and how do I refrence it so that it works?

CSS File
Not a problem - just a query!
I have created a stylesheet in the Site Manager > Development > CSS Stylesheets
And it says at the top 'Check out the stylesheet to file C:\development\Kentico\CMSCSSStylesheets\<StyleSheetName>.css to edit the stylesheet externally.'

But when I look in my project - there isnt a folder there called that at all! (even when I browse to the folder!)

Any info would be greatly appreciated so I can get this site built and working!
Thanks heaps,
Cassandra
:)

User avatar
Member
Member
bluerhino_avanmeter - 6/19/2009 9:17:58 AM
   
RE:Basic Site Development - Images/Javascript/CSS
Images: Your app_themes folder name needs to be the same as the site stylesheet you created (http://devnet.kentico.com/docs/4_0/tutorial/app_themes.htm). You can reference the images within using the form: ~/App_Themes/<folder name>/Images/sample.jpg

Javascript: You can place your .js file pretty much anywhere in your project that you want and have it work. You can link to it directly in your templates or master page using the project path where it resides:
<script language="javascript" type="text/javascript" 
src="~/CMSTemplates/<site name>/Javascript/test.js"></script>


CSS: Did you check the css out to file before looking for it in the project folder? The folder and file won't actually be created until you check the file out for the first time.

User avatar
Member
Member
cshanks-tmw.co - 7/2/2009 8:03:32 AM
   
RE:Basic Site Development - Images/Javascript/CSS
Thanks heaps for you help!

All sorted now! :)