Import style libraries in EdAdmin4

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 14:39

To import style libraries in EdAdmin4

1.View style libraries as explained in View style libraries in EdAdmin4.

2.Select one or more style libraries in the list and then on the Action menu, click Import.

3.Select the folder and then select the file name you exported as explained in Export style libraries in EdAdmin4.

Note: The exported file may contain one or more style libraries. Make sure you did all necessary editing of the XML file before importing it.

IMPORTANT WARNING BEFORE REIMPORTING EXPORTED STYLE LIBRARY FILE

The exported XML file contains the original style library id, and the typography name. So, if you import it 'as-is', you will simply replace the existing objects in the database.

There are four possible cases:

1.Import it as a new style library in the same typography. This is suitable if you want to have a copy of the existing style library, and optionally change the styles. Edit the XML file and remove id of the style library, e.g. remove id="obj161540" from the <justDef id="obj161540". On importing, this will force the creation of the new style library.

2.Import it as a new style library in another typography. This is suitable if you want to have a copy of the existing style library. Edit the XML file and remove id of the style library, e.g. remove id="obj161540" from the <justDef id="obj161540". Moreover, replace all the occurrences of the typography name with the new typography name, e.g. replace Default in <keyVal>Default</keyVal> with another name. On importing, this will force the creation of the new style library.

3.Import it as a existing style library in the same typography. This is suitable if you want to edit actual settings in XML, using find and replace. Edit the XML file but do not change ids or typography names.

Example of a XML file

<?xml version="1.0" encoding="utf-8"?>

<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-teradp-com:gn4tera">

 <justDef id="obj161540" name="Jumps" modifiedDate="2012-06-21T16:50:51.263Z">

         <description />

         <scopeRef objectType="justScope">

                 <keyVal>Default</keyVal>

         </scopeRef>

         <cmds>

                 <cmd xmlns="" name="JumpTo2" desc="JumpTo2" cmdType="ParStyle" nextSt="">

                         <par desc="Jumpline" type="String" def="" min="0" max="0" />

                         ...

                 </cmd>

                 ...

         </cmds>

 </justDef>

</objects>

See also

Export/import formats in EdAdmin4