Hi @SnitchHomer,
Yeah that is an issue I found as well. I’m pretty sure this wouldn’t be a simple JS tweak. Sadly I don’t have the time currently to look into this. Keep us posted if you make any developments 🙂
Dave.
Hi @jrstaatsiii,
I sadly can’t share this project due to client’s request. But the basic idea is explained here: http://stackoverflow.com/questions/15757448/can-i-create-own-php-class-in-wordpress-theme-function
Cheers,
Dave.
Exactly the same issue on one site.
Hi @antk3,
Thanks, so when I made this the block layout wasn’t around.
So the site that I built this for, there were a large number of different types of blocks, but only a few that actually appeared on every type of row. There is one in particular that was repeated often which I called a “Media Block”. This is used in multiple rows and multiple sizes per row, so I created a standard ‘media block’ and duplicated using a naming convention based on the row it was in:
I’ve attached the JSON for this.
In the template files there was no flexible content logic, I kept all that to a set of MVC style classes. So a controller that handles all of the flexible content selection, then a set of dumb views for actually outputting HTML from the controller.
Hope that helps.
Oh yeah, one other thing. Including icons inside the initial page building steps, like selecting how many rows are in a column is really simple too: http://www.atomicsmash.co.uk/blog/adding-icons-to-acfs-flexible-content-popup-box/
Hi @studiowizjo, @davelee and @adamb glad it might be of use.
Here is the code https://github.com/AtomicSmash/ACF-page-builder. I’ve bundled it into a plugin for easy testing.
So the code is pretty simple and probably a bit buggy (it’s about 12 lines of jQuery). Like I said before, I don’t particularly want to support this as it’s only a prototype, so please fork away.
Instruction on setup are in the repo readme.
When you see how little code it takes to modify the ACF Flex content field to do this, I think it speaks testament to what a great job @Elliot Condon has done with ACF and how ‘flexible’ it truly is. *MEGA PROPS*
Dave.
I gave myself an hour to prototype something for a client a month or so ago:
https://www.youtube.com/watch?v=9c_Xa0gKWu4&list=UU2I5SfmbGwswHAzmdqoOHSQ
This is just the Flexible content plugin, with a bit of JS+CSS to make the content of each sub sub flex content field appear in a model window.
I can share this code shortly if anyone wants it, though it is pretty crude JS and CSS that probably is full of bugs (not tested at all). I can’t dedicate any more time to it but it might make a good starting point for someone else?
Dave.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.