<p>I am trying to import a list with the following format in each list item: 
<code>&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;</code>
into a Super Table block containing fields for each of the above. </p>

<p>I tried with different xml formats following the documentation, but did not have any success importing multiple rows in the same Super Table field.</p>

<p>I wish to have it as:</p>

<p><strong>SuperTable field:</strong></p>

<pre><code>&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
</code></pre>

<p>But it creates a new Super Table entry with just a single row for the new list item each time.</p>

<p>i.e. </p>

<p><strong>SuperTable field:</strong></p>

<pre><code>&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
</code></pre>

<p><strong>SuperTable field:</strong></p>

<pre><code>&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
</code></pre>

<p><strong>SuperTable field:</strong></p>

<pre><code>&lt;Date&gt; - &lt;Title&gt; - &lt;Icon&gt; - &lt;External Link&gt;
</code></pre>

<p>My current xml format is: </p>

<pre><code>&lt;entries&gt;
  &lt;entry&gt;
    &lt;SuperTable&gt;
      &lt;Row&gt;
        &lt;date&gt;&lt;![CDATA[1583366400]]&gt;&lt;/date&gt;
        &lt;content&gt;&lt;![CDATA[&lt;strong&gt;Some text here&lt;/strong&gt;]]&gt;&lt;/content&gt;
        &lt;icon&gt;&lt;![CDATA[]]&gt;&lt;/icon&gt;
        &lt;link&gt;&lt;![CDATA[https://www.google.com]]&gt;&lt;/link&gt;

      &lt;/Row&gt;

      &lt;Row&gt;
        &lt;date&gt;&lt;![CDATA[1557273600]]&gt;&lt;/date&gt;
        &lt;content&gt;&lt;![CDATA[Some more text for second item]]&gt;&lt;/content&gt;
        &lt;icon&gt;&lt;![CDATA[]]&gt;&lt;/icon&gt;
        &lt;link&gt;&lt;![CDATA[https://www.facebook.com]]&gt;&lt;/link&gt;
      &lt;/Row&gt;
    &lt;/SuperTable&gt;
  &lt;/entry&gt;
&lt;/entries&gt;
</code></pre>

<p>Anyone could please point me to the right direction? </p>

CC BY-SA 4.0
2020-05-26T11:37:49.800Z
make sure your Primary element in step two of feed creation is /entries/entry not /entries **edit:** it seems this is related to an issue when feedme doesn't work as expected when supertable is inside matrix.
[https://github.com/craftcms/feed-me/issues/470#issuecomment-502378093](https://github.com/craftcms/feed-me/issues/470#issuecomment-502378093)
user9975
CC BY-SA 4.0
2020-05-26T14:38:55.220Z
Thanks. I have already tried it with /entries/entry, /entries/entry/SuperTable, /entries/entry/SuperTable/Row without any success.
zarun
CC BY-SA 4.0
2020-05-26T15:02:19.383Z
sorry. i edited a long answer. this should have been a comment. although i tested your exact xml with feedme. when i choose entries as primary, i get one record , if i choose /entries/entry, i get both of them.  is this your original xml?
user9975
CC BY-SA 4.0
2020-05-26T15:08:01.167Z
also is title of entry mapped to another xml element or what?
user9975
CC BY-SA 4.0
2020-05-26T19:32:26.303Z
I’m trying to map just one field in an existing entry. I do that by using a particular ID for the entryID field. My title field therefore already is filled so I select do not map. So basically I’m not trying to create a new entry. My backend in this entry looks like:

- title 
- Lots of Other fields
- Super table field (subfields: date, text, url)
zarun
CC BY-SA 4.0
2020-05-27T13:40:44.520Z
to make sure we're on the same page, if there is only one entry with three supertable item in xml, how the output looks like? - one supertable which have only one item or one supertable with three items, or three items in three different blocks? also what is supertable layout in field setting?
user9975
CC BY-SA 4.0
2020-05-27T14:59:28.243Z
hey thanks for bearing with me! So if there is only one entry with 3 items in xml, the output (i.e. in the backend) looks like three items in three different blocks (one item in each block). I am trying to achieve these three within one single block because the list items belong to type of block which will later have one heading and the items under it.
zarun
CC BY-SA 4.0
2020-05-27T16:34:20.207Z
go to field settings and edit your supertable field. Field Layout of super table field is probably Matrix Layout -as a result you see different block per item -. change this setting to table layout or row layout, now all of these items are in one block. but if you want another field for that block not whole entry, i guess maybe you need another solution. you need a matrix field with two fields: the supertable field and one text plain field for title, another fields are possible with this scenario. fortunately feedme supports supertable in matrix.
user9975
CC BY-SA 4.0
2020-05-27T16:34:30.620Z
although your final solution depends on what exactly you need. let me know if you have further question.
user9975
CC BY-SA 4.0
2020-05-27T17:17:39.283Z
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/108543/discussion-between-zarun-and-user677900).
zarun
<craft3><plugin-feedme>
Feed Me - feed format for importing into Super Table field
# Feed Me - feed format for importing into Super Table field

(Asked by: username_0 on 2020-05-25)

I am trying to import a list with the following format in each list item: 
 -  -  - 
into a Super Table block containing fields for each of the above. 
I tried with different xml formats following the documentation, but did not have any success importing multiple rows in the same Super Table field.
I wish to have it as:
SuperTable field:
 -  -  - 
 -  -  - 
 -  -  - 

But it creates a new Super Table entry with just a single row for the new list item each time.
i.e. 
SuperTable field:
 -  -  - 

SuperTable field:
 -  -  - 

SuperTable field:
 -  -  - 

My current xml format is: 

  
    
      
        1583366400
        <strong>Some text here</strong>
        
        https://www.google.com

      

      
        1557273600
        Some more text for second item
        
        https://www.facebook.com
      
    
  


Anyone could please point me to the right direction?

**Tags:** craft3, plugin-feedme
> **Comments:**
> **username_1**: make sure your Primary element in step two of feed creation is /entries/entry not /entries **edit:** it seems this is related to an issue when feedme doesn't work as expected when supertable is inside matrix. [https://github.com/craftcms/feed-me/issues/470#issuecomment-502378093](https://github.com/craftcms/feed-me/issues/470#issuecomment-502378093)  
> **username_0**: Thanks. I have already tried it with /entries/entry, /entries/entry/SuperTable, /entries/entry/SuperTable/Row without any success.  
> **username_1**: sorry. i edited a long answer. this should have been a comment. although i tested your exact xml with feedme. when i choose entries as primary, i get one record , if i choose /entries/entry, i get both of them.  is this your original xml?  
> **username_1**: also is title of entry mapped to another xml element or what?  
> **username_0**: I’m trying to map just one field in an existing entry. I do that by using a particular ID for the entryID field. My title field therefore already is filled so I select do not map. So basically I’m not trying to create a new entry. My backend in this entry looks like:  - title  - Lots of Other fields - Super table field (subfields: date, text, url)  
> **username_1**: to make sure we're on the same page, if there is only one entry with three supertable item in xml, how the output looks like? - one supertable which have only one item or one supertable with three items, or three items in three different blocks? also what is supertable layout in field setting?  
> **username_0**: hey thanks for bearing with me! So if there is only one entry with 3 items in xml, the output (i.e. in the backend) looks like three items in three different blocks (one item in each block). I am trying to achieve these three within one single block because the list items belong to type of block which will later have one heading and the items under it.  
> **username_1**: go to field settings and edit your supertable field. Field Layout of super table field is probably Matrix Layout -as a result you see different block per item -. change this setting to table layout or row layout, now all of these items are in one block. but if you want another field for that block not whole entry, i guess maybe you need another solution. you need a matrix field with two fields: the supertable field and one text plain field for title, another fields are possible with this scenario. fortunately feedme supports supertable in matrix.  
> **username_1**: although your final solution depends on what exactly you need. let me know if you have further question.  
> **username_0**: Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/108543/discussion-between-zarun-and-user677900).  

---

## 0 answers

