Coder Social home page Coder Social logo

Comments (7)

tmconnect avatar tmconnect commented on June 26, 2024 1

Thanks for your reply.

Yes - I have a "pagebuilder system" which has a repeater where the user can add rows to build his page. Within this repeater - and therefore in each row - is a flexible content field with a lots of layouts the user can select from.

from bea-beautiful-flexible.

MaximeCulea avatar MaximeCulea commented on June 26, 2024

Hi @tmconnect,

To clarify a little bit, you are using flexible fields into a repeater one ?

Thank you for your kindness and code proposal.

from bea-beautiful-flexible.

MaximeCulea avatar MaximeCulea commented on June 26, 2024

Great ! I'll have a look closely soon then.

from bea-beautiful-flexible.

MaximeCulea avatar MaximeCulea commented on June 26, 2024

Hi @tmconnect,
Sorry for the delay, I had some hollidays 🤗

Could you please check that this version (https://github.com/BeAPI/bea-beautiful-flexible/archive/issue-7.zip) include your changes and works well in your case ?

You will be kind, thank you 😄

from bea-beautiful-flexible.

tmconnect avatar tmconnect commented on June 26, 2024

Thanks for the new version, but I got an error - even if the flexible content field is not in repeater:
Illegal offset type in .../wp-content/plugins/bea-beautiful-flexible-issue-7/classes/main.php on line 85

After delving a bit deeper into your code, I found a much simpler solution for the implementation:

Because each popup item already has a data-layout attribute, which tells the name of the layout element. You don't have to get the names of all flexible layouts in an extra function.

The JS script only has to get this data-layout attribute and has to modify the acf-popup list. In addition I wrote some data attributes to the acf-popup element for the title and subtitle for the popup. So the strings can be translated.

You can download my solution from my dropbox: Link

Let me know if this works for you.

Thomas

from bea-beautiful-flexible.

MaximeCulea avatar MaximeCulea commented on June 26, 2024

Hi @tmconnect,
It seems that this error was already present and now fixed with #10.
Except this error, everything was fine ?
Please let me now in order to merge and release.
Thx

from bea-beautiful-flexible.

herewithme avatar herewithme commented on June 26, 2024

This plugin is deprecated.
I recommend you to use : https://wordpress.org/plugins/acf-extended/

from bea-beautiful-flexible.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.