Cannot install custom block
Permalink 1 user found helpful
I'm trying to install a very simple block to include and manage a flash gallery.
However when I upload the folder into the blocks (or packages) directory, it doesn't appear in the Add Functions menu.
Any help would be appreciated.
I attached the code I'm tring to install.
However when I upload the folder into the blocks (or packages) directory, it doesn't appear in the Add Functions menu.
Any help would be appreciated.
I attached the code I'm tring to install.
could you possibly clarify this in more simple terms?
thanks!
thanks!
just change the name of the folder that contains the block files to "expose"
Thanks! This was driving me crazy.
So the folder name needs to match the line
"class BasicTestBlockController extends BlockController" in controller.php.
For example "BasicTestBlockController" becomes the folder name 'basic_test'.
So the folder name needs to match the line
"class BasicTestBlockController extends BlockController" in controller.php.
For example "BasicTestBlockController" becomes the folder name 'basic_test'.
ie
class ExposeBlockController extends BlockController {
means your folder needs to be called
"expose" not "exp_inc"
also make sure the folder is kept lowercase