This extension is very similar to the “Multi Drop-down List” I created here http://ellislab.com/forums/viewthread/38370/, however instead of a list it gives you checkboxes. Let me know how this works for you all.
Update 1 Added the ability to use separator=”[string]” in a template tag to override the default separator
Thanks for sharing this, it looks like exactly what I’m after. First impressions are that it works perfectly, but I did receive this error when I created a new checkbox-style custom field:
Notice: Undefined variable: field_type in /path/system/cp/cp.publish_ad.php on line 5402
Unfortunately, this is an inherent error in EE. It comes in the Edit Field Group page where there is a switch statement that defines the variable $field_type.
switch ($row['field_type'])
{
case 'text' : $field_type = $LANG->line('text_input');
break;
case 'textarea' : $field_type = $LANG->line('textarea');
break;
case 'select' : $field_type = $LANG->line('select_list');
break;
case 'date' : $field_type = $LANG->line('date_field');
break;
case 'rel' : $field_type = $LANG->line('relationship');
break;
}
The problem with this is that below the switch they echo out $field_type, and if the field type is not in their switch then $field_type will not be defined.
If you would like to fix this problem I would recommend the following (and hopefully pMachine will follow suite).
Find the following line (around 5388):
switch ($row['field_type'])
before that place this line:
$field_type = "";
So that switch should look like this:
$field_type = "";
switch ($row['field_type'])
{
case 'text' : $field_type = $LANG->line('text_input');
break;
case 'textarea' : $field_type = $LANG->line('textarea');
break;
case 'select' : $field_type = $LANG->line('select_list');
break;
case 'date' : $field_type = $LANG->line('date_field');
break;
case 'rel' : $field_type = $LANG->line('relationship');
break;
}
That should fix your PHP Notice.
If you’re using this extension in combination with any of my other extensions it is highly recommended that you update all of them or field data may not enter correctly. You can find links to the individual posts below:
Checkbox: http://ellislab.com/forums/viewthread/38843/ Multi Drop-down List: http://ellislab.com/forums/viewthread/38370/ Multi Text: http://ellislab.com/forums/viewthread/39153/ File: http://ellislab.com/forums/viewthread/38997/
Or you can find a list of them on my docs page: http://docs.markhuot.com
Hey Mark, really like the idea of your extension but I’ve got a couple of requests.
1) Being able to select {title} as the field we wish to pre-populate from. and 2) is there a way to (for lack of a better word) separate the info back out when we parse it in the weblog entries tag?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.