If everything went fine, you've already tried the default basic example to create the "hello_block_developer" Block Type, like so:
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.
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.
You can use a -p option to pass a package handle for an installed package, like so:
In case the package handle is not an (existing) installed package, you will get a question:
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.
By default, the command will do the following:
We are able to skip these options with the -s option. In the same order, the skipping values for each process:
If we would like to skip building the view and installing the Block Type, we do the following command:
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:
Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.
Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.
Use, by you or a client, in x/xx single end products.
Upon request, quote will be made and sent to you via email.
Got something to say? Need help?
View support forum