Main Menu
Contact
Popular Plugins
Sign In

If everything went fine, you've already tried the default basic example to create the "hello_block_developer" Block Type, like so:

concrete/bin/concrete5 c5:block-developer -b hello_block_developer

Now you don't necessarily need to read the parts below to developer/build Block Types, but it may be faster for your processes when you do. Passing options to the Block Developer command are an easy way to shorten your development! After you are done reading this page, you could go to the Configuration page over here.

Block Handle

The -b part (and the value directly after it) let's the system know this is the handle for your to be created Block Type. Validation on this value will take place, so you shouldn't be able to dismantle your website this way. Just always use lowercase characters and underscore only. Don't use numbers or uppercase characters.

Package Handle

You can use a -p option to pass a package handle for an installed package, like so:

concrete/bin/concrete5 c5:block-developer -b hello_block_developer -p my_package_handle

In case the package handle is not an (existing) installed package, you will get a question:

Do you want to place this Block Type within an already installed Package [y/N]:

You are then able to enter "y" and choose one. You can always still abort the complete process by pressing CTRL + C for example and get a package installed and repeat the process.

Skip (skipping processes)

By default, the command will do the following:

  1. Build view file (view.php);
  2. Build templates (when configured in your config file);
  3. Install the Block Type;

We are able to skip these options with the -s option. In the same order, the skipping values for each process:

  1. build_view
  2. build_templates
  3. install

If we would like to skip building the view and installing the Block Type, we do the following command:

concrete/bin/concrete5 c5:block-developer -b hello_block_developer -s build_view -s install

You could add all processes to skip or just one as well. In case you only don't want to install by default, you could do:

concrete/bin/concrete5 c5:block-developer -b hello_block_developer -s install

Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $35.70
Add to Concrete5 Cart

Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $142.80
  • Save an extra: $119.00
Add to Concrete5 Cart

Use, by you or a client, in x/xx single end products.

Upon request, quote will be made and sent to you via email.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Saves extra $$
Request Quote
Released 6 years ago
Updated 1 year ago
Installs 3
Requires concrete5 5.7.5.3
Current version 1.4.5
Skill level Bleeding Edge

Buyer Rating:

5 average based on 3 ratings More information

Got something to say? Need help?

View support forum