Page 1 of 1

Use a temporary domain for development?

Posted: Wed Jan 21, 2015 8:44 pm
by Cognatus
Is it doable to use a temporary address for development and then convert the finalized page to another domain when done?

Re: Use a temporary domain for development?

Posted: Wed Jan 21, 2015 10:51 pm
by velden

Re: Use a temporary domain for development?

Posted: Wed Jan 21, 2015 11:59 pm
by Cognatus
I'm not expressing my thoughts well enough...

If I develop a page at my web hotel with a temporary url that my ISP provides when adding a new webspace at the server, can I redirect the DNS for a domain now used for another page to point at the my new page and get it to work?

Re: Use a temporary domain for development?

Posted: Thu Jan 22, 2015 8:38 am
by velden
Yes you can. But - of course - you shouldn't use hard coded urls.

So make use of:

{cms_selflink ...}
{root_url} (in stylesheets: [[root_url]])
{uploads_url} (in stylesheets: [[uploads_url]])

And in MicroTiny wysiwyg you use the 'cmsms' page selector when adding internal links.

After changing the domainname better clear cache of cmsms and if you're using CGSmartImage module you need to change one setting iirc. Think it stores a url which does NOT change afterwards automatically when changing domain name.