• Sign In
    • Forgot your password?
    • Forgot your username?

K2 | The powerful content extension for Joomla! developed by JoomlaWorks

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
Content management as it should have been in Joomla
You are hereDocumentation For Developers Hack: Checkboxlist as a new ExtraField type

Hack: Checkboxlist as a new ExtraField type

21 March 2012, 08:52 by Code Snipper
in For Developers
  • Print/PDF
How to make checkboxlist - inspired by Jordan Ivanov:

It's a hack because need to modify K2 and Joomla! core files. All files are attached to this post, all changes are commented in files.

  1. In  /libraries/joomla/html/html/select.php after line 125
  2. In  /administrator/components/com_k2/models/extrafield.php  in lines: 60, 298, 224
  3. In  /administrator/components/com_k2/views/extrafield/view.html.php in line 47
  4. In  /administrator/components/com_k2/views/extrafields/view.html.php in line 72
  5. In  /media/k2/assets/js/k2.js in line 523
  6. In  /components/com_k2/models/item.php in line 1035
  7. In  /administratorllanguage/en-GB/en-BG.com_k2.ini in line 445
Unpack in some safe place and check all changes after that upload all files into your server.

(K2 team note: we highly discourage hacking K2 or Joomla! core - use at your own risk)

Tags:

  • checkbox ,
  • checkboxlist
Tweet

Download Attachments

  • checkboxlist.zip
  • Contact us
  • Privacy Policy
  • License
  • K2 Downloads
  • K2 Metrics
  • K2 on GitHub
back to top
Copyright © 2006 - 2025 JoomlaWorks Ltd. All rights reserved. K2 is a joint project by JoomlaWorks & Nuevvo, released under the GNU/GPL license.
Joomla is a registered trademark of Open Source Matters, Inc. K2 is not affiliated with or endorsed by Open Source Matters or the Joomla Project.
designed by Nuevvo