New block isn't recognized for installing1 user found helpful
I'm currently testing a new block (the facebook comments from the c5tutorials) and tried to add it to my site,
So i've put it at /opt/lampp/htdocs/concrete5.5.1/blocks/facebook_comment (where all the files are, gave them the 777 rights to be sure)
but when i login to my site to install it, it is not shown in the list of Awaiting Installation list in the Block Types panel of the Dashboard.
It has all the required files (add.php auto.js controller.php db.xml edit.php view.php) to work theorically (although i doubt it will)
Do you know what could I do to make concrete5 recognize it ?
When i tried the basic_test block it recognized it instantly
I also understand that there stored in different directories, but looking at what goes into them they seem the exact same file wise.
Any light you could shed would be greatly appreciated.
1) your site directory (which contains "blocks", "controllers", "single_pages", "themes", etc. etc.)
2) The "concrete" directory (which contains "blocks", "controllers", "single_pages", "themes", etc. etc.)
3) Every package's directory (which *could* contain "blocks", "controllers", "single_pages", "themes", etc. etc. -- but unlike the first two, do not contain those things by default -- they must be added explicitly by the package author).
So a block is a specific kind of functionality in a C5 site (it's a thing that users can add to areas on a page and edit content with). A package is not specific functionality, but instead a way of distributing other functionality. It just so happens that many times, a package only contains 1 block in it... but there's nothing stopping it from containing 2 blocks or 10 blocks or no blocks (e.g. many themes), or a block and a theme and several single_pages (front-end and dashboard) mail templates and css and js files, and libraries and helpers (e.g. complicated applications that can be added to other sites).
...then the controller class must be:
(NOT FaceBookCommentBlockController, and NOT facebook_comment_blockController, and not anything else... only exactly what I have above).
If that's not the case, maybe ensure that you have the db.xml file set up properly.
Thanks a lot !