Support forums

Please check @brandnewbox_uk for support status updates.

Search     Advanced Search
Matrix support  
Posted: 04 October 2011 08:50 AM —  
Administrator
Avatar
RankRankRankRank
Total Posts:  1357
Joined  2006-04-12

I have basic support for importing into Matrix fields in my current development version of DataGrab. To get the development to the next stage I need real-world examples of what you need to do.

If adding Matrix support to DataGrab would be useful for you, please could you email me or add a post in this support thread with examples of data sources (eg, CSV, XML files or others) and matrix designs (screenshots would be great) and how you’d like the data to map to the Matrix fields.

This will give a much better appreciation of what the Matrix import process needs to achieve.

This is the kind of thing I need:


“I want to use Matrix to display a gallery of images per channel entry.

“My field is set up like this (see attached screenshot)

“and my data is in this format:”

<root>
 <entry>
  <title>Title</title>
  <description>Lorem ipsum dolor sit amet…</description>
  <images>
   <image>
    <label>Image #1</label>
    <file>image1.png</file>
   </image>
   <image>
    <label>Image #2</label>
    <file>image2.png</file>
   </image>
  </images>
 </entry>
 ...
</root>

Thanks, Andrew

Profile
 
Posted: 06 October 2011 08:42 AM —   [ # 1 ]  
Newbie
Rank
Total Posts:  7
Joined  2011-09-04

Hi Andrew

Please image of the type of matrix field I would to import data into. I haven’t formulated a data file as yet but it will be more than likely in csv format.

Regards

Paul

Profile
 
Posted: 06 October 2011 02:34 PM —   [ # 2 ]  
Newbie
Rank
Total Posts:  3
Joined  2011-06-16

Hi Andrew,

great news! Basically, we have a XML feed that we have to import into existing Photo Galleries. (And automate the import with a cron job).

Here is a screenshot of the Matrix configuration. You can find a sample of the feed here: http://consilium.europa.eu/toolbar/feeds/galleryrss.aspx?lang=en&from=10102011&to=11102011

The feed is a standard Rss feed. Gallery titles should correspond to the <category> tag. For example, each item in the rss feed with the category Environment should be imported in the gallery titled Environment (or create it if not exists). So the idea is the append data to the Matrix of each gallery. If it is not doable, maybe I could transform the feed to correspond to wat you are presenting in your first post.

Best regards,


Pv

Profile
 
Posted: 18 October 2011 07:40 PM —   [ # 3 ]  
Newbie
Rank
Total Posts:  3
Joined  2008-10-22

Hey there,
I’d love to be able just to enter any number of name/value pairs into matrix, whether there are 3 or 30 of them.

Profile
 
Posted: 19 October 2011 06:00 PM —   [ # 4 ]  
Newbie
Rank
Total Posts:  7
Joined  2011-06-02

Andrew,

I was also wondering if you were planning on supporting CartThrob price modifier fields, which are matrix “like” but store the data in the same exp_channel_data table.

Also, would I be able to beta test the matrix support? Have two projects that I could use it on. Thanks

Profile
 
Posted: 20 October 2011 09:49 PM —   [ # 5 ]  
Newbie
Rank
Total Posts:  3
Joined  2008-10-22

Hey Andrew,
I’m in the middle of working on an internal proof of concept for a data platform at a client right now. It’s turning out to be largely dependent on datagrab supporting matrix. Any way I can get my hands on a working beta? Pleeeeeeease?

Profile
 
Posted: 21 October 2011 03:23 AM —   [ # 6 ]  
Newbie
Rank
Total Posts:  6
Joined  2010-04-15

I have an article Channel.  It has a body field, and the body field is a Matrix, where you can have multiple rows of body text, which then paginate.

I want to import several RSS feeds, and put their entire content:encoded content, into the first Body matrix field of the article that I’m importing.

It’s a pretty straightforward case, I think.

TTFN
Travis

Profile
 
Posted: 07 November 2011 02:41 AM —   [ # 7 ]  
Newbie
Rank
Total Posts:  13
Joined  2010-11-20

Andrew,
How far off is having Matrix support in Data Grab?

Here’s an example of what I need at the min

<?xml version="1.0"?>
<root>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">



<channel>

    <entry>
      <title><![CDATA[Fruit and vegetable offers]]></title>

<offers>
<offer_title><![CDATA[]]></offer_title>
<offer_img><![CDATA[]]></offer_img>
<offer_weight><![CDATA[Medium]]></offer_weight>
<offer_unit><![CDATA[]]></offer_unit>
<offer_msg><![CDATA[Buy 2 for £3]]></offer_msg>
<offer_was><![CDATA[]]></offer_was>
<offer_now><![CDATA[£1.75]]></offer_now>
</offers>
<a><![CDATA[]]></alt_title>
<body><![CDATA[
 
]]></body>
<search><![CDATA[
]]></search>
    </entry>

 
    </channel>
</rss>
</root>
Profile
 
Posted: 08 November 2011 09:52 AM —   [ # 8 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1357
Joined  2006-04-12

Hi,

I have a beta version of DataGrab going to testers (hopefully) today which does not add Matrix support but does have the required internal changes to support it.

Matrix support is then the next item on my to do list.

(Currently Matrix is incompatible with EE’s Channel Entries API - http://expressionengine.com/user_guide/development/api/index.html - so I need to do a bit more work to support it in comparison to other 3rd party field types)

Andrew

Profile
 

‹‹ DataGrab and multiple category groups      Simple Commerce support? ››

Select A Theme