Use a temporary domain for development?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Cognatus
Forum Members
Forum Members
Posts: 45
Joined: Sun Apr 08, 2012 9:30 am

Use a temporary domain for development?

Post by Cognatus »

Is it doable to use a temporary address for development and then convert the finalized page to another domain when done?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Use a temporary domain for development?

Post by velden »

Cognatus
Forum Members
Forum Members
Posts: 45
Joined: Sun Apr 08, 2012 9:30 am

Re: Use a temporary domain for development?

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Use a temporary domain for development?

Post 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.
Post Reply

Return to “The Lounge”