Site path and Images

Permalink
Ok,
Spent most of day implementing my first C5 site.
So far so good.
A couple of questions.

1/ I have installed C5 underhttp://www.CCC.com/site/ as a test
What do I need to change when I am ready to go live with the site and for it to work properly underhttp://www.CCC.com

2/ In a content block, when inserting an image, the image path is inserted aswww.www.CCC.com/site/files/Name... Of file.

I understand that I will have problems with images when moving the site in a live environment.
Is there a way to give each image a PATH ATTRIBUTE?

Thx in advance

 
andrew replied on at Permalink Reply
andrew
Change your DIR_REL constant to no longer include '/site' after you move it up one level. Your URLs should automatically change.
simpled replied on at Permalink Reply
Thanks andrew,
Looking at the config file, I havethis at the moment

//$v = View::getInstance();

// you can override system layouts here - but we're not going to by default */


//$v->setThemeByPath('/login', "yourtheme");
//$v->setThemeByPath('/403', "yourtheme");
//$v->setThemeByPath('/register', "yourtheme");

What should be entered?

Also, what about images path?
Can I use something like $SITEPATH instead of full url to image folder?
jimlightanddark replied on at Permalink Reply
Did you ever get a response on this? I'm trying to make it so that I get a full image path for all images throughout the site.
SVijay replied on at Permalink Reply
SVijay
Exclude '/site' from your DIR_REL in config/site.php file