bummzack / page-blocks

Page Blocks Module for SilverStripe
BSD 3-Clause "New" or "Revised" License
15 stars 12 forks source link

Excellent module is just what I was looking for. #6

Open webspilka opened 9 years ago

webspilka commented 9 years ago

Hi I looked yours TODO https://github.com/bummzack/page-blocks/blob/master/TODO.md. I vote with both hands for support fluent translations and get rid of the has_many relation to make blocks reusable

It would be great if there will:

bummzack commented 9 years ago

Thanks for your feedback.

Fluent translations work.. I've used page-blocks successfully with fluent. The has_many relation is here to stay. Having many_many blocks imposes many difficulties, especially when it comes to publishing (eg. user publishes Block on one page and then the Block is suddenly published on all other locations where it has been linked). You can use the VirtualBlock to re-use a block on different pages though.

I haven't thought about short-codes... interesting. I wonder why you would need something like this? The goal of content-blocks is to compose your content in blocks and not inside the WYSIWYG-Editor. Imagine if you had a Text-Block and added the same block inside it as Shortcode... ouch!

Can you explain for what use-cases you'd need a BlockHolder?

Providing different templates is not the scope of this project. There are myriads of requirements when it comes to frontend styles/variations. But it should be pretty simple to add this feature via an extension?