We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Data Matrix - New Multi-Text like custom field extension.

Development and Programming

eddyfever's avatar
eddyfever
62 posts
16 years ago
eddyfever's avatar eddyfever

When i install your files, and then go to my Extensions Manager, the page will be blank. No Extensions Manager for me then. And when i remove your EXT files it works again.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

A new version of LG Data Matrix will be out in the next couple of days… hopefully that will fix your issue.

       
eddyfever's avatar
eddyfever
62 posts
16 years ago
eddyfever's avatar eddyfever

Looking forward to that, because i think this Extension is what im looking for.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

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!

LG Data Matrix 1.0.0

Cheers Leevi

       
imagehat's avatar
imagehat
68 posts
16 years ago
imagehat's avatar imagehat

Leevi - this is awesome, thanks for releasing it! One small thing I noticed however is that the 1.0 release doesn’t include the images for the sort and delete icons. I had them from your previous versions, but thought I’d mention it…

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey imagehat,

Good catch. I have added the images to the upload and will update the docs today.

Cheers

       
aircrash's avatar
aircrash
293 posts
16 years ago
aircrash's avatar aircrash

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.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
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

       
james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

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.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Required for each field is a good idea. I will try and incorporate it into a future release.

As for adding a please select option try:

short_name = col_3
title = Column 3
type = select
options = :stuck_out_tongue:lease Choose|one:One|two:Two|three:Three
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
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. 😊

       
james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

Couple more ideas I thought of for the extension:

  1. Regular expression validation for text fields. So if you wanted only numbers and decimals, you would get an error message when you try to save that the formatting of that particular field was incorrect… maybe even being able to create what that message is on a field level would be helpful.
  2. Having the option to visually number your rows in the CP. These would of course need to update as you re-order them.
  3. The option for column level instructions.
       
eddyfever's avatar
eddyfever
62 posts
16 years ago
eddyfever's avatar eddyfever

Since i updated to 1.0, i cant add a row or do any other jquery action. I checked the paths to the JS files and those are correct. Anybody a idea what this can be why i cant add more rows?

       
imagehat's avatar
imagehat
68 posts
16 years ago
imagehat's avatar imagehat

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 😉

       
Kuz's avatar
Kuz
14 posts
16 years ago
Kuz's avatar Kuz

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!

       
1 2 3 4 5 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.