Matt E Posted January 25, 2022 Share Posted January 25, 2022 I'm working on a new site on a demo server with a temporary domain (like demo123.myhost.com). My issue is when working with things like CMS and custom HTML modules, using WYSIWYG editors to insert images/links generates an absolute path such as https://demo123.myhost.com/path-to-image-or-page When I eventually transfer the site to the primary domain, all of those links will become obsolete and broken. Is there a standard procedure for developing content on a demo server/domain that can be quickly and easily transferred to a live domain without needing to change them each individually? Link to comment Share on other sites More sharing options...
El Patron Posted January 25, 2022 Share Posted January 25, 2022 use relative address, ps had defines, use the premade define/your file Link to comment Share on other sites More sharing options...
Matt E Posted January 25, 2022 Author Share Posted January 25, 2022 3 hours ago, El Patron said: use relative address, ps had defines, use the premade define/your file Yes I know you can do this in template files but I am asking specifically about inserting images and links into CMS pages or modules with WYSIWYG editors. Those do not work with the system defines like in TPL and PHP files. Link to comment Share on other sites More sharing options...
El Patron Posted January 25, 2022 Share Posted January 25, 2022 if you wysiwyg is not ps compliant you will need to doo mass change on their output when you move to production. Link to comment Share on other sites More sharing options...
Matt E Posted January 25, 2022 Author Share Posted January 25, 2022 (edited) 1 hour ago, El Patron said: if you wysiwyg is not ps compliant you will need to doo mass change on their output when you move to production. PS compliant? I am using the built-in editor (see attached image). When you add content like this, it creates absolute path to image using demo server URL. How can this be change to use PS define for base URL? Edited January 25, 2022 by Matt E (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now