< Back
Print

Image export with no access to the CONTENTSERV platform

This will be the case for companies who do not host their CONTENTSERV platform and the target system within the same network. ImageServer URLs as displayed in option 1 will not work. For option 2, the export of media assets can be done in two steps.

Step 1: Create a shadow structure of your CS MAM

Starting with SAWSConnector Basic 1.4.7 and also included in 1.5.0 or higher, you can use our MAM script to export your MAM assets to a dedicated fileshare that your shop system has access to.

Create all neccessary MAM presets

Navigate to the CS MAM module and go to presets. Click on the “Create new preset” button in the list view:

The preset dialogue will pop up. Enter a name for your preset and select the preset type (set to standard if you are unsure). Click on the save button:

The preset dialogue will relaod. Enter all asset parameters you wish to be applied to your export, for example image width and/or height, resolution, color space etc. For “image format” indicate the format your exported files should have (e.g. if your shop system can only deal with PNG files but MAM only contains TIFs, set “png” here:

Example for a preset with width, height, color space and png as a target file extension:

Example for preset that will export original files without any changes (=no parameters):

Create an active job using our MAM plugin

Once you are done adding all neccessary MAM presets, navigate to “Active Jobs” in your CS platform:

The active job dialogue will open up. Define a name for your job, set a category and for “Script” select “SCExportMAMStructreScript”:

The dialogue will realod and offer all parameters available for our MAM script:

 

Setting Description Example
Root directory to be exported Indicate the directory in CS MAM from which you wish to export your assets from. Select “Volumes” or navigate further down the tree.
Export path Set the export path of the target directory that will later on be used by or synchronized to your target system. /var/www/data/export
Creates the MAM path starting with the indicated root node if enabled
Create folder paths using MAMfileIDs instead of names By default, our script will export all MAM paths using the labels of folders. If this option is enabled, we will export the MAMfileID of folders instead
Only selected workflows will be exported. Select the workflow status of your MAM files to be considered for the export. All workflow statuses not selected here will be ignored. Set all workflow statuses if you need all assets exported.
Workflow assignment This is where the previously added MAM presets come into play. Here you can map MAM asset types to presets. please see below
Additional attributes that should be loaded additionally (for project specific implementations for status, structure etc.) This option is available for customers who need to set further conditions for their assets. Only works with project-specific (code-based) adjustments.

Workflow assignment – map asset types and presets:

 

Click on the “+” button of this section add a line. In “File extension”, add all file types you wish to be considered and in “Preset for export”, add the preset you created earlier on:

The example above will export all PNGs, TIFs, Indesign and GIF files using the “Export all images as JPG” preset we created earlier on. The preset is set to export all file types as JPGs with the given parameters (color space, width and height).

Please note: file extensions must be indicated without the dot!

You can add several lines here, for example another line of all jpg files and use a preset that exports original files (see example from step 1).

When you are done with your settings, save your settings and run your script:

The job log will show you export results:

 

The entry “no preset for file type pdf” (see red mark above indicates that pdf is none of the file extensions you indicated in the file type/preset mapping.

Step 2: Configure SAWSConnector to export the path to the shadow structure

 

Now that you created a shadow structure of your CS MAM module, you need to set up the SAWSConnector to export the path to that new structure. Since this path will be different from the origional MAM path in the “prefix” (MAM paths may start with volumes/assets/images/image1.jpg… whereas the new shadow structure will be different, for example Shopimages/image1.jpg)

 

In the SAWSConnector this can be done using two plugins at once, firstly “SC::References – send specific value of a reference” to get the origional MAM path of a referenced media asset and secondly, “SC::List – format value lists”.

 

In order to be able to combine these two plugins, select the “SC::complex – multistep formating” plugin for your image attribute and click on the gearwheel symbol next to it to configure the above-mentioned plugins:

 

The plugin settings will open up. Click on the “+” icon to add a new line:

 

Select “SC::References – send specific value of a reference” from the list and click on the gear wheel button to get to the settings page,

 

Enter MAMPath as the attribute you wish to export and save your settings, close the window:

 

Add another line to the multistep plugin by using the “+” icon and select the plugin “SC::String – transform unformatted values with transformation list” and click on the gear wheel button next to it to make further settings:

 

plugin “SC::String – transform unformatted values with transformation list” and click on the gear wheel button next to it to make further settings:

 

Select a transformation list (for example one that converts “volumes/assets/images/” to “Shopimages/”) and save your settings:

 

Example of a tansformation list:

Force return of the refernces/values as array by switching on the checkbox and save the setting.

Save your settings in the data map and export your new paths to your target system.

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents