I’m looking for a way to make our client’s lives easier.
When creating a page using flexible content there might be a “Call to action” layout; they might primarily use this layout in two or three ways across the site so instead of having them re-input the content on every page they’d like to be able to save the two or three ways they primarily use the layout and then be able to select that on another page, loading in the layout and it’s options.
For example, this post does a great job of loading an entire flexible content layout from one page to another, but what i’d like to be able to do is save a specific layout’s content/options that can then be individually added to the field array.
It would be very difficult to pick a specific layout already created for another page. How I handle this is that I create a CPT where “global layouts” or something similar can be added. Then on the page there a is layout called “Global Layout” that includes a single post object field where they can select one of the posts in the CPT.
Just make sure that the client understands the concept that this new thing is for layouts that will be use on multiple pages of a site. I once did this and the person entering the content created every layout as a global layout and then used nothing but global layouts when creating pages. It was a nightmare and the need to query 6 to 10 other posts to display each page seriously dragged down the performance of the site.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users