Hello all,
I have a question about exporting. We have a site that is using MySQL
for the database, and I am having trouble getting a test instance up and
running with a copy of the MySQL database (some nodes are getting
corrupted along the way). So I figured I would try to make an export
from Magnolia and just re-import that, rather than copy the entire database.
Can anyone tell me how I can get a clean export that can be re-imported?
I feel like I must be doing something wrong, as every export I make
is not suitable for import. I have tried:
1. Tools -> Export, selecting the website repository, / for path,
versions not checked, format XML not checked, XML selected for
compression
2. Same as #1 only with format XML checked
3. Right clicking on a page in the Website view and selecting
"Export tree to xml"
In all 3 cases, the output produced is exactly the same. I am not sure
what the format XML checkbox is supposed to do but it does not seem to
have any effect whether I check it off or not. The export I get cannot
be imported back into the new repository because each <sv:value> node
that has content in it has line breaks all through it and when the file
is imported, the line breaks get converted to <br/> tags. Since a good
number of these line breaks appear between HTML attributes, I am ending
up with some really broken HTML after import.
For example, my export has:
<sv:value><div align="center"><strong><img
width="250" height="258"
align="absbottom"
src="contact/mainColumnParagraphs/0/content_files/file/Logo
Color.jpg" alt="" /></strong><br />
</div></sv:value>
and then after import, the HTML looks like:
<div align="center"><strong><img width="250" height="258"<br />
align="absbottom"
src="contact/mainColumnParagraphs/0/content_files/file/Logo<br />
Color.jpg" alt="" /></strong><br /> </div>
(notice the <br /> tags in the middle of the img attributes and in the
middle of the file name)
Anyone have any suggestions on what I'm doing wrong with these exports?
Thanks!
Miranda
--
Miranda Jones
Objective Consulting, Inc.
http://www.spiders.com
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------