# Can MediaMapper map Images to BaseProduct as well?

**URL:** <https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388>\
**Category:** Questions\
**Created:** [March 18, 2020, 2:39pm UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388 "2020-03-18T14:39:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![albarest](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/albarest/32/369_2.png) [@albarest](https://forum.litium.com/u/albarest)\
**Post date:** [March 18, 2020, 2:39pm UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/1 "2020-03-18T14:39:53Z")

</div>

Is it possible to map images to the BaseProduct in MediaMapper or is it only to Variants?

Litium version: 7.4

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [March 18, 2020, 2:53pm UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/2 "2020-03-18T14:53:14Z")

</div>

Yes, it maps both.

---

<div class="post-metadata">

**Author:** ![albarest](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/albarest/32/369_2.png) [@albarest](https://forum.litium.com/u/albarest)\
**Post date:** [March 18, 2020, 2:57pm UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/3 "2020-03-18T14:57:02Z")

</div>

How can I get it to work?

I have a BaseProduct with the name bp-3085125-20 and an image with the name bp-3085125-20\_1.jpg

In Src\Litium.Accelerator.Mvc\Litium.AddOns.ProductMediaMapper.dll.config I have the following settings

```auto
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ProductMediaMapping.xsd"
  mediaarchiverootfolder="Import" articlenumbercharacterlengthmatch="1">
  <AllowedFileTypes>
  <AllowedFileType filetype="gif" />
  <AllowedFileType filetype="jpg" />
  <AllowedFileType filetype="png" />
  </AllowedFileTypes>
  <DisplayImagesMappings>
    <DisplayImageMapping prefix="" suffix="_1" prio="0"/>
    <DisplayImageMapping prefix="" suffix="_10" prio="1"/>
    <DisplayImageMapping prefix="" suffix="_20" prio="2"/>
    <DisplayImageMapping prefix="" suffix="_30" prio="3"/>
  <DisplayImageMapping prefix="" suffix="_40" prio="4"/>
    <DisplayImageMapping prefix="" suffix="_50" prio="5"/>
    <DisplayImageMapping prefix="" suffix="_60" prio="6"/>
    <DisplayImageMapping prefix="" suffix="_70" prio="7"/>
  </DisplayImagesMappings>
</Configuration>

```

It works great if I map a variant

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [March 18, 2020, 4:49pm UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/4 "2020-03-18T16:49:48Z")

</div>

I tested this in a clean installation of Litium 7.4, using MediaMapper addon 7.0.100.0 and your configuration above, and it works as expected. The image _bp-3085125-20\_1.jpg_ was mapped to base product **bp-3085125-20**.

Are there any errors in the event log?

---

<div class="post-metadata">

**Author:** ![albarest](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/albarest/32/369_2.png) [@albarest](https://forum.litium.com/u/albarest)\
**Post date:** [March 19, 2020, 10:52am UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/5 "2020-03-19T10:52:33Z")

</div>

Thank you, I got it to work now. I don’t know why it didn’t run the first time.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [April 16, 2020, 10:52am UTC](https://forum.litium.com/t/can-mediamapper-map-images-to-baseproduct-as-well/1388/6 "2020-04-16T10:52:44Z")

</div>

Closed on April 16, 2020, 10:52am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
