How to transfer image code from one site to another?

  • 1
  • Question
  • Updated 8 years ago
  • Answered
I'm trying to move a page from one of my Yola sites to a different Yola site. When I use the HTML feature, I can cut and paste the code very easily. The code for images does not, however, work at the second site. It has the form: src="resources/cruc,-200.gif?timestamp=1271352238255"

It seems that there must be some way that I can make the cut-and-paste method work for images too. How can I make the images show up at the second site? is there a bit of code that I can add to do the trick?
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes

Posted 8 years ago

  • 1
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hi Keara,

If you would like to use an image on another site by cutting and pasting code, please remember to upload that image to the File Manager of that site or you would need to use the site's published URL in the file path.

Here's how it would look:
src="resources/cruc,-200.gif?timestamp=1271352238255"
would be
src="http://www.yoursite.com/resources/cru..."

You can remove ?timestamp=1271352238255 if you like (I'm not entirely sure whether it would affect the display of the image).

Please let us know if that doesn't work at all (if possible, could we have a link to the page you're trying to add it to).
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes
Marije, thank you for your help. I was able to insert the necessary code (http://www.yoursite.com) and it worked like a charm. (Just so you know, I deleted the timestamp info and the image display was unaffected.)

I'm very pleased to have this info and be able to copy pages from one site to another so easily. Perhaps you might want to add this method to your FAQ or Knowledgebase? People ask about copying sites quite often. Right now your FAQ says that it can't be done. As it turns out, it can be done page by page, with a very little effort.

Thanks again - your information was really very helpful.
Photo of Margie

Margie

  • 286 Posts
  • 25 Reply Likes
I agree a page can be "copied" from one site to another, but it has to be widget by widget, which can be pretty time consuming if the page is large. Unless you've copied the code for each widget onto your computer, you would also have to log in and out of each site between copying and pasting.
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes
Well, I have found it a very useful and helpful way to go about getting what I wanted. It seems to me a great improvement over being told, "No, you have to rebuild everything from scratch."
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes
The logging in and out is certainly a pain. I didn't do this myself, but it occurred to me that I could put a temporary link on each site, to the other, and use that. (Not sure it would work, but I think so.)
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes
Another possibility that had occurred to me was that I could temporarily place all the code of one page into a single widget, and then transfer it all in one fell swoop to the other site. Still some labor involved, true, but surely better than rebuilding from scratch.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
I'm glad that you were able to find ways around rebuilding Keara!
Photo of Margie

Margie

  • 286 Posts
  • 25 Reply Likes
I'm not sure about all the code in one widget--unless it's all in a single column page?

Another way is to view and copy the source code for the page and paste it into notepad. Then while viewing your original page (or using a screenshot of the page in sitebuilder), you could identify each widget with comment tags in the notepad file. Tip: identify the widgets as "top left," "top right."

Then you could go to your new site and paste into one widget after another.

Whatever way you go, good luck with it.
Photo of Keara

Keara

  • 325 Posts
  • 14 Reply Likes
The main thing is - no rebuilding from scratch!