With the introduction of the new folder structure of site/www.domainname.com/files I found a fix that doesn't take a lot of work and no wierd long url names and no more orphaned images etc in your nodes.
The problem is say you have a photo on your page and it is pointing to http://www.domainname.com/siles/www.domainname.com/files/image/12345.jpg
and you move your structure or reproduce the node in your other site location you have to go change all your orphaned links.
Now the fix is simple and I think one of the big programmers can take what I have done and implement it into a module or something to make it easier would be great.

Step 1. Implement the SwitchOverRide module.
Step 2. make up a switch like the following
Orginal = /imagelocation/ this can be anything you choice
Replacement = http://www.domainname.com/sites/www.domainname.com/files/
Step 3. Use the following type for an image or link
Only local images are allowed. print t('/imagelocation/').'image/1548506.jpg' " />

Now during the node creation it won't show up as valid but once you save your node it will be correct. You can use like FKEditor or something and select your phone so you can see it and than switch SRC part and you are golden. I know there has to be something that be worked on around this thought process to make somethign standard and robust....

Any comments or suggestions are welcome...

Comments

wware01’s picture

Version: 5.x-1.0-beta2 » 5.x-1.0

Sorry Step 3 didn't take here is an example.

This is the src from your image tag src="< ?php print t('/imagelocation/').'image/1548506.jpg' ?>"

dalin’s picture

Status: Active » Closed (fixed)

This has nothing to do with the multisite API module