The rewrite plugin renames multiple values with the same (first) row

Created on 24 July 2023, 11 months ago

Hi,
I am trying to create content with title "Title 1" and by reference field to create other contents with titles item1, item2, item3, item4 respectively. However, the content title must be a combination of Title1 and Items1..4 to avoid duplication.
This is a sample XML feed.

<?xml version="1.0" encoding="UTF-8"?>
<method id="getDetails">
  <mainData>
    <title>Title 1</title>
    <application>https://xml.sample.com/application/2023.docx.pdf</application>
    <img>https://xml.sample.com/images/7.jpeg</img>
    <url>https://sample.com/nameofprogram</url>
    <Pack>N23</Pack>
  </mainData>
  <itemsdata>
    <item>
      <item_id>36</item_id>
      <item_name><![CDATA[item1]]></item_name>
      <item_big_img><![CDATA[https://xml.sample.com/images/859.jpg]]></item_big_img>
    </item>
    <item>
      <item_id>64</item_id>
      <item_name><![CDATA[item2]]></item_name>
      <item_big_img><![CDATA[https://xml.sample.com/images/525.jpg]]></item_big_img>
    </item>
    <item>
      <item_id>44</item_id>
      <item_name><![CDATA[item3]]></item_name>
      <item_big_img><![CDATA[https://xml.sample.com/images/996.jpg]]></item_big_img>
    </item>
    <item>
      <item_id>31</item_id>
      <item_name><![CDATA[item4]]></item_name>
      <item_big_img><![CDATA[https://xml.sample.com/images/600.jpg]]></item_big_img>
    </item>
  </itemsdata>
</method>

When I use the rewrite plugin it only uses the first position for the renaming and thus all lines are the same. Therefore, the titles become the same and overwrite each other.

On the screenshots you can see mapping of XML,created contents and feeds log.

πŸ› Bug report
Status

Active

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024