Comments (7)
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.
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.
Great ! I'll have a look closely soon then.
from bea-beautiful-flexible.
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.
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.
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.
This plugin is deprecated.
I recommend you to use : https://wordpress.org/plugins/acf-extended/
from bea-beautiful-flexible.
Related Issues (15)
- Maybe flexible settings with an image ?
- Simple flexible - Illegal offset type HOT 10
- Allow more image formats HOT 5
- Change Required Plugin Check HOT 2
- Same constant BEA_ACF_OPTIONS_MAIN_FILE_DIR as in ACF Options for Polylang HOT 2
- There is a problem with jQuery noConflict() HOT 1
- Images not found if Flexible field is used in a Gutenberg Block HOT 1
- Custom Path for images on theme HOT 1
- Find a way to i18n
- Maybe need some cache when getting flexible keys ?
- Add default image
- minify scripts
- Fix title layout's title display
- ACF 5.7.0 could break flexible layouts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bea-beautiful-flexible.