Basic block not getting recognized

Permalink
I copied the basic block into my blocks folder

http://www.concrete5.org/files/7212/9710/3658/basic_test2011.zip...

public_html
- blocks
---basic
-----contents of the zip folder
-concrete
---blocks
-----concrete 5 blocks here


I logged out and logged back in to the my Dashboard, but when I go to "Add functionality" I don't see the block.

Am I missing something? The code doesn't look like it belongs to a package...

 
nicolechung replied on at Permalink Best Answer Reply
Meh, folder had to be named basic_test
jordanlev replied on at Permalink Reply
jordanlev
If you're trying to learn how blocks work, you might find the free "Designer Content" addon useful:
http://www.concrete5.org/marketplace/addons/designer-content...

Create a sample block via the dashboard, then go look at the code it makes. I spent a lot of time ensuring the generated code from there is clean and correct -- unlike the basic_test block, which doesn't seem to have been updated in many years (it still contains an error -- the line "var $pobj;" should not be in there, and will give you warnings on PHP 5.3+).

-Jordan
Codezilla replied on at Permalink Reply
I was having the same issue. Problem is that the tutorial for the "Basic Test" block says to unzip inside your root/blocks and then goto "Add Functionality." You should instead be going to "Block Types" in the Dashboard and that is where it lists the blocks waiting to be installed or installed already.


Hope this keeps someone else from pulling their hair out.
jordanlev replied on at Permalink Reply
jordanlev
Yes, this is another result of the basic_test block not having been updated in several years -- as of Concrete5.5, the way to install such blocks has changed as well.

It is unfortunate that documentation is not being kept up to date :(