Home > concrete5 for developers > If you write a concrete5 block and it’s not available to install

If you write a concrete5 block and it’s not available to install

June 30th, 2010

Quick tip for developers writing custom blocks for concrete5. If you have coded a block, placed its folder in ‘blocks’ directory but cannot see it available for installation in concrete5 backend (in the "Add functionality" section), check the controller class name. That is the issue in most cases. It should match the block directory, i.e. if your block folder is “my_folder”, then in controlller.php you should have this:

class MyFolderBlockController extends BlockController {

I don’t recommend to use anything in your block directory name except digits, a-z characters and underscores.

admin concrete5 for developers

  1. No comments yet.
  1. March 4th, 2013 at 00:20 | #1
  2. March 15th, 2013 at 10:14 | #2
  3. March 16th, 2013 at 08:20 | #3
  4. March 17th, 2013 at 16:42 | #4
  5. March 18th, 2013 at 19:40 | #5
  6. March 19th, 2013 at 04:53 | #6
  7. March 21st, 2013 at 15:07 | #7
  8. March 29th, 2013 at 18:11 | #8
  9. April 3rd, 2013 at 11:47 | #9
  10. April 5th, 2013 at 05:57 | #10
  11. April 5th, 2013 at 07:46 | #11
  12. April 12th, 2013 at 20:45 | #12
  13. April 15th, 2013 at 17:17 | #13
  14. April 16th, 2013 at 19:01 | #14
  15. April 21st, 2013 at 01:11 | #15
  16. April 23rd, 2013 at 18:46 | #16
  17. April 24th, 2013 at 09:17 | #17
  18. April 25th, 2013 at 01:42 | #18
  19. April 26th, 2013 at 03:36 | #19
  20. May 2nd, 2013 at 01:08 | #20
  21. May 2nd, 2013 at 19:01 | #21
  22. May 5th, 2013 at 23:50 | #22
  23. May 7th, 2013 at 09:37 | #23
  24. May 8th, 2013 at 21:06 | #24
  25. May 10th, 2013 at 16:08 | #25
  26. May 25th, 2013 at 19:25 | #26
  27. May 28th, 2013 at 14:17 | #27
  28. June 1st, 2013 at 01:52 | #28
  29. June 5th, 2013 at 18:54 | #29