Let's say I have created a block with some Full HTML (Facebook Feed) text inside. How can I commit the block and its text content into my Git repository, so my co-workers can pull it?
|
Turn it into a Feature. Bad thing is, it does not work on built-in custom blocks, so you need to use Boxes to get it work. That way, you can export block as a module, and modules are text files, so GIT accepts them with it's full support. Then, there is Features to Git module. It claims:
|
|||||||||
|
Create a module for that block using the Features module and then commit that module on to the GIT repository of yours. For more information you could read the README.txt of feature module from. |
||||
|
Why not override the block with the relevant block.tpl.php template file. In that way you can easily manage the block contents using Git. The drawback is of course that the block can't be managed in the Drupal admin UI, but it can also be a plus if users with edit block permission are not supposed to edit it. So it all depends. |
|||||||
|