Modifying Existing Blocks
PermalinkI was wondering if there is a way to make a package that can be sold through the Marketplace as an add-on that would modify an existing block. Specifically, I am interested in modifying the Form block. I want to add a feature to the Form block, and I want to be able to sell it.
Please ask me if you have any questions.
It's not allowed to sell add-ons for which need you to buy a different one first.
You might be able to modify the entire block though and sell it as a whole.
See the rules for it here:http://www.concrete5.org/developers/marketplace-submission-rules/...
You can check for a package being installed in your own package and return out without installing yours if your dependent add-on isn't installed, but at that point the end user has already purchased your addon(hopefully!), so you already failed them there.
So it just needs to be clear that the package you are depending on is spelled out in the description, otherwise you wouldn't see the various shipping addons or gateways for ecommerce.
of packages for sale which extend existing core blocks (which are available
for free w/the MIT license.) The trouble is how to extend them in a way that
doesn't fork them or make upgrades impossible. Right now the form block is,
unfortunately, not the most extendable add-on. It's view template is mostly
useless - it really ought to have far more view logic contained in view.php
than in controller.php. That's something we'll be working on. Also, adding
options to the form block is going to be difficult to do given the way it's
currently build. However, in the future (if we go with using attributes with
the form block, it might be easier to do this.)
Just my initial thoughts.