Closed thomasbnielsen closed 10 years ago
Hi. Yes, I had a look at your project but had several installation issues. When installing via composer, the _config.php
file didn't appear and thus the required constants were not set (CONTENTBLOCKS_MODULE_DIR
and CONTENTBLOCKS_TEMPLATE_DIR
). After setting them manually, I got errors in the CMS and stopped trying.
Now I just had another look and was able to make it work (using the sources from github) and deleting _config/betterbuttons.yml
(this seems to be incompatible with the latest version of betterbuttons?).
I like your idea with the templates. I guess something like this could be really handy where you have a lot of similar content parts (eg. text + images) and several ways to present the content on the frontend. Although the BlockTemplates
folder really gets cluttered fast and you also get a lot of similar template code.. something that could maybe even be solved by just adding some classes depending on the desired layout instead of creating different markup for every scenario.
My module is basically the code I used for several different projects already put into a more structured and unified form. One of the important features for me was versioning and the possibility to easily add new Block types. Other than that, I tried to keep it as lean as possible.
Yeah i need to remove that betterbuttons.yml file. Really want to do some work on the module, but i have a lot of work atm. I'm actually working on doing some more intelligent templates, define how big an image you want an then calculate columns and so. The versioning part is something that is on my wishlist, that just needs to be in the module. Will install and give your module a test when i get a bit of time.
A discussion about existing content-blocks is taking place in the developer mailing list.
Hi, I noticed your module from the blog post on SilverStripe.org. We have very similar ideas about the workings of such a module. Did you check out my "go" at this? https://github.com/NobrainerWeb/Silverstripe-Content-Blocks
I know my PHP is bad - i'm just a frontender, but what do you think?