Miranda Jones schrieb:
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>&lt;div align=&quot;center&quot;>&lt;strong>&lt;img width=&quot;250&quot; height=&quot;258&quot; align=&quot;absbottom&quot; src=&quot;contact/mainColumnParagraphs/0/content_files/file/Logo Color.jpg&quot; alt=&quot;&quot; />&lt;/strong>&lt;br /> &lt;/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


Hi Miranda,
sorry for this late reply.
We found a similar behaviour after an export and following import of a website. Line breaks were wrongly set and links were only displayed in plaintext. We use magnolia in version 3.0.2 and jackrabbit in version 1.0.2...
I am not sure if you have already tried it,but you can try follow:
> do an export with the magnolia export-tool with the option "keep version=checked" and "format xml=not checked" !! (this combination have to be!!, (keep version=true or format xml=true does'nt work!!) After these changes our website looks well after an export and following import.
1. Tools -> Export, selecting the website repository, / for path,
  versions checked, format XML not checked, XML selected for
  compression
"I am not sure what the format XML checkbox is supposed to do " With the setting "format XML" the website is stored in a conform,nice xml design,without this option, XML code of the website is displayed side by side in one line. (my idea)

Hope It helps you.

Anja

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to