codelight-eu / acf-blocks

41 stars 1 forks source link

Update Documentation with Examples #3

Open Reinpal opened 5 years ago

Reinpal commented 5 years ago

Hi there!

I've come across this library via https://discourse.roots.io/t/dev-library-acf-blocks-controllers-for-re-usable-field-groups/12264. I'm using Sage and ACF a lot and your library looks very promising. As I'm trying to implement it, I've stumbled across some problems which probably could be solved by updating the Docs. I'm mainly talking about:

Examples

Best Practices

Maybe you could share a basic setup, for working with Sage. That would be really nice!

All the best, Stefan

indrek-k commented 5 years ago

Hi there!

Thanks for the feedback. Agreed, the docs are way too laconic at the moment. I will try to find time to write more detailed examples, but that will not happen before the end of this month.

To address the specific points you mentioned:

Integrating this project into the Sage Folder Structure

There are no hard rules, i.e. you can put the code that initializes the Blocks anywhere. But I agree that it would be nice to provide more in-depth examples.

Does Controller need to be disabled, can we use Blade Templates?

You don't need to disable Controller. And yes, this works with Blade out of the box.

If you have any other specific questions, feel free to ask!