Home Forums Add-ons Flexible Content Field Store single layout's content & load on another page


Store single layout's content & load on another page

    • halo

    • June 2, 2020 at 1:41 am

    Hey 🙂

    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.

    Thanks for any help/ideas, appreciated

  • 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.

    • halo

    • June 2, 2020 at 6:01 pm

    Thanks John, great solution to the problem without pushing the boat out and doing something crazy, many thanks 🙂

  • 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.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.