New home › Forums › Pro Add-on › Site migration and XML file
Tagged: xml
- This topic has 1 reply, 1 voice, and was last updated 3 years, 1 month ago by davesantorum.
-
AuthorPosts
-
August 18, 2020 at 3:50 pm #60517davesantorumParticipant
Hi,
I’ve migrated my site from one location to another on the same server (from a sub-site to the main URI so from blog.website.com/live to website.com). I’ve also moved from database driven markers to XML.
I noticed pretty soon after deleting the original site that no markers were being displayed. Using the developer console I was able to see that the icons I’d specified for categories were still being taken from the blog.website.com/live/wp-content/uploads/ directories. So I went to the Maps -> Categories section and edited the categories to use the new local location. All seemed fine. Updating the images associated with each marker was relatively easy as the map isn’t too busy yet.
However! When I checked the XML file after saving I see there are many references to images using the old URLs: The <pic> field is now correct, but <gallery> and <icon> both refer to the wrong site.
My questions are:
- Why is this, after updating each individual marker?
- I’m unfamiliar with how the URLs are formatted. An example is:
<gallery data-json="true">[{"attachment_id":"92","url":"https:\/\/blog.website.com\/live\/wp-content\/uploads\/2020\/07\/IMG_20200620_072047573_HDR-scaled.jpg","thumbnail":"https:\/\/blog.website.com\/live\/wp-content\/uploads\/2020\/07\/IMG_20200620_072047573_HDR-scaled-300x225.jpg"}]</gallery>
. Can I just replace\/\/blog.website.com\/live\/wp-content
with\/\/website.com\/\/wp-content
? - Why do some entries have gallery entries, while others that also contain image URIs do not?
Any help on this would be great, thanks!
(Attaching the current XML file for you just in case).
DaveAttachments:
You must be logged in to view attached files.August 18, 2020 at 4:25 pm #60521davesantorumParticipantThis reply has been marked as private. -
AuthorPosts
- You must be logged in to reply to this topic.