Dynamic data from posts in popups
Alex
Popups can contain any static data and that's ok. But what if I want to show dynamic data from CPT in popup too.
Here is the case to use this feature.
- I create a srvices/products post type or use WooCommerce product post type;
- I create a popup with dynamic data from chosen CPT;
- Then I create listing card template for my CPT;
- During create listing, I put the button (f-ex. Learn More), which will open popup, created on the step 2;
- And now I add the query builder block and choose listing template.
When I click the button I get the dynamic data from CPT. It can be properties, characteristics, gallery from custom fields and description from main content.
We can also put the form inside popup and get one click orders. Form email template can contain the post Title and post permalink (if CPT publicly_queryable = true). So, customers manager can understand which product or service was ordered.
The best example of similar solution — JetPopup + JetEngine for Elementor.
It would be great feature especially for landing pages.
Bertus De Leeuw
No status?
R
Reshimo
I got dynamic data to work like a charm with Oxygen and repeater/modal elements. Why would dynamic data not be available for popups in Breakdance?
Makes no sense. Please add this!
Richard
Really missing this feature
Barry Smith
I can definitely see a use for this for dynamic data.
J
Joseph Ralston
It can be done with a Javascript function that gets called onclick from the PostLoopBuilder global block, passing the data as 'data-' attributes, and setting the values of related elements in the popup from the JS. I've done it before, then clearing those element values in an 'close' function when the popup gets closed.
Pierre Bost
It's a must have! I went through a lot of trouble for a customer, and finally gave up for a simpler solution.
Thanks in advance
Kayla Cooper
Hey, is there a way to do it using the pop up settings and conditions?
Chris Thompson
Alex In case you don't know, this is already a feature...unless maybe I'm missing your point.
You have to build all the parts, but I don't see any limitations with using dynamic data in various ways in a popup. Everything I've tried with dynamic data in popups so far has worked as expected.
Alex
Chris Thompson: yeah, you missed out.
What you wrote about is true if you are inside a post or page. I mean archives or arbitrary loops.
J
Jurgen Valks
Yes!!!!!
Bartek R
It’s must have option in any builder. Important feature, please add this.
Load More
→