K2 Extra Fields Support Checkbox

Sometime we need MultiSelect with Checkbox if you are using Joomla K2, but K2 missing this functions, now we can hack extrafield.php to realization checkbox in K2.

Just edit the file  /administrator/components/k2/models/extrafield.php and replace these lines:

case 'multipleSelect':
    $output=JHTML::_('select.genericlist', $defaultValues, 'K2ExtraField_'.$extraField->id.'[]', 'multiple="multiple"', 'value', 'name',$active);

with these:

case 'multipleSelect':
    $field_id = 'K2ExtraField_'.$fid;
<div style="display: none;">'; $output.="
<script type="text/javascript">// <![CDATA[
function select_multilist_$fid(t,i) {
                var myselect = document.getElementById('$field_id');
                var status = t.checked;
// ]]></script>
"; $output.=JHTML::_('select.genericlist', $defaultValues, 'K2ExtraField_'.$fid.'[]', 'multiple="multiple"', 'value', 'name',$active); $output.='</div>
    foreach ($defaultValues as $item){
        $checked = ( in_array($item->value,$active) ) ?  'checked' : '';
        $output.='<input checked="checked" onclick=""select_multilist_'.$fid.'(this,'.$item-" type="checkbox">value.')" > ';

tips to increase Joomla website loading speed

Security Joomla 2.5 Administration Area

Help you to hide Administration Control Panel Backend Security Protect through Add an extra layer of security to your Joomla! Administrator backend..

10 Tips to Make Joomla Loading Fast

Page loading speed is an important factor in deciding the success of an online business website. It not only affects to the website user experience but also Google search ranking - strictly SEO related. The question is how to improve the loading speed of a website?


20 Free Responsive Joomla 2.5 and 3 Templates

Publishing best responsive Free Joomla 2.5 and 3.0+ Templates for our readers that help you to create really creative and innovative websites

Classic Free Joomla 2.5 Templates Most Favoured

If you’re searching for Free Joomla 2.5 Templates, this round-up in should give you good inspiration and hopefully what you are looking for. Those Free Joomla 2.5 Templates are whenever classic.


10 Best Compress Joomla Plugins to Speed Up

Plugins can automatically optimize external resources, decrease the loading time of your website by compressing, optimizing, merging CSS and JavaScript on your website.

25 Images Content Slider Joomla Extensions

Collected 20+ image based Content Sliers and image Slidershow Joomla Modules and Plugins will stay away from the use of slide show. if you are into blog you need to have an image gallery that makes an effect to the crowd you are narrating.