Jump to content

Recommended Posts

Posted

Hey,

it's always the same: I'm builing a local version of a webseite using TinyMCE fields in the backend with images etc. But after uploading to the live server the relative path to images and pages change (of course). It would be lovely to have a module or a function to refresh this relative paths in TinyMCE / textareas :)

What do you guys think?

/ Nico

Posted

A good approch would be to store the installation path somewhere and when you load the admin path to compare it (maybe automatically) to the actual path. If the path is changed you could show a note "The path has changed - check for broken links?" directing to a page where you see all broken links with possible - working - fixes and a way to manually update them :)


Maybe only check after login like this "the password-system is updated bla bla" note in 2.3 :)

Posted

If you set the textarea to content type html, in the field settings, PW will take care of it.

If you set the textarea to content type html, in the field settings, PW will take care of it.

  • Like 2
Posted
What do you guys think?

I always develop on the same directory level as the site would be when live, so never had to deal with those issues.

Every new site has it's own vhost.

  • Like 3
Posted

I always develop on the same directory level as the site would be when live, so never had to deal with those issues.

Every new site has it's own vhost.

Yep, been doing this for a while now as well, and never looked back. It just saves you a lot of headaches.

Posted

@Soma: Sorry for the misunderstanding - I really meant the local domain thing Martijn described :)

@Martijn: I use XAMPP for developing so I guess I just have to change the hostname table, haven't I?


And btw. it's "private/etc/hosts" on mac :)

Posted
And btw. it's "private/etc/hosts" on mac

It is, but I don't know any mac where you can't access it directly. (alias)

in the hosts file you bind the name to the host.

the vHosts should pick it up. ( look for servername )

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...