Ok version 1.0.0 is out!
Update 1.0.0: - MSM Compatibility - LG Addon Updater Integration - Documentation
I hope you all enjpoy this release. If you do consider bookmarking it on any of your social networks!
Cheers Leevi
Great extension! I think I found a bug though. I was pasting in content from a print document, and there were unencoded em-dashes in the text. When I submit the entry, it looks ok in the EE control panel’s preview, but on the live page, no content is displayed from the Data Matrix field; and when I go back to edit the entry, the fields are blank.
Great extension! I think I found a bug though. I was pasting in content from a print document, and there were unencoded em-dashes in the text. When I submit the entry, it looks ok in the EE control panel’s preview, but on the live page, no content is displayed from the Data Matrix field; and when I go back to edit the entry, the fields are blank.
Hey Aircrash,
Thanks for the report I’ll try and check it out over the next couple of days.
Cheers
it would be nice if you could set individual fields as required in the configuration:
required = yes
also… is there a way to set a null value for the drop down fields (maybe even with some explanation text like “select an option”)? so if a drop down field was required, i would want to make sure that the user explicitly set a value for the field.
Great extension! I think I found a bug though. I was pasting in content from a print document, and there were unencoded em-dashes in the text. When I submit the entry, it looks ok in the EE control panel’s preview, but on the live page, no content is displayed from the Data Matrix field; and when I go back to edit the entry, the fields are blank.
I’ll test this bug for the next release. 😊
Couple more ideas I thought of for the extension:
Leevi - I can’t seem to find anywhere if this is a php5-only extension - I was getting the following error after moving a development site to a client’s host still running php4:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /path/to/system/extensions/ext.lg_data_matrix_ext.php on line 597
It seems the problem is the bit of chaining that php4 chokes on:
$SESS->cache['lg'][LG_DM_addon_id]['field_query'] = $DB->query("SELECT field_name, field_id, lg_field_conf FROM exp_weblog_fields f WHERE f.field_type='".$this->type."' AND site_id = " . $site_id)->result;
which I changed to:
$query = $DB->query("SELECT field_name, field_id, lg_field_conf FROM exp_weblog_fields f WHERE f.field_type='".$this->type."' AND site_id = " . $site_id);
$SESS->cache['lg'][LG_DM_addon_id]['field_query'] = $query->result;
Now php4 is happy. Old and feeble, but happy.
I’m not sure if you even care about supporting php4 at this point, but I thought I’d post my experience here in case you’d want to roll it into the next release, or else on the chance it helps someone else with the same problem - this extension is too good to miss out just because a client has a bad host 😉
Wow, what an awesome add-on! Too bad I’m just now finding it, because I really could have used it on my last project (isn’t that how it always works?).
I have this running in a sandbox environment on my local machine, and I’ve found one minor issue. I noticed that the Add Row link wasn’t working at all, so I started checking out the source code of the publish page. jQuery and jQuery UI were linked correctly, but admin_publish.js was not.
This is what line 849 of the extension’s file looks like:
$js .= "\n<script type='text/javascript' charset='utf-8' src='/" . $PREFS->ini('system_folder') . "/extensions/lg_data_matrix/scripts/admin_publish.js'></script>";
In my particular instance, my EE system folder’s URL is http://localhost/sandbox/admin/. Line 849 is not taking into account the “/sandbox” portion of the URL, as it is hard-coded to have the system folder be at the root level.
Could this extension be modified to fix the linked path for this file, short of going into the plugin and changing it by hand? I don’t have a problem with changing it by hand, but I’d also have to remember to do it every time it gets updated.
Thanks, and keep up the great work!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.