rtpharry / jet-engine-repeater-values Goto Github PK
View Code? Open in Web Editor NEWAccess JetEngine repeater values via Elementor Dynamic Tags
License: GNU General Public License v3.0
Access JetEngine repeater values via Elementor Dynamic Tags
License: GNU General Public License v3.0
Hi!
I am trying to use meta data from the repeater field (checkbox value) in order to show or hide the grid listing on the Single Post Page. I'll try to explain it in context so it makes more sense:
One my Single Post Page in Elementor for Custom Post Type: Schools, I have created a section called Weekly Schedule.
The Weekly Schedule is a repeater field that includes these subfields:
Name
Level
Start Time
Duration
Day of Week (Checkbox): Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
I have created a listing item and with the grid listing I have shown these listing templates under the corresponding day of week. As you can see in my image, I was unable to hide the classes that were supposed to be only on Tue/Thu from the rest of the days of week since I cannot use Dynamic Visibility on Repeater Checkbox Fields either through just JetEngine or your additional plugin.
Let me know if I explained that well enough, if not, happy to share more information! Thank you so much!
When using a repeater image Field as a background of a column or section, it shows the just image of the first one.
Hi Matt,
I have this issue where if i set the dynamic visibility to hide a repeater field based on the repeater key (text) nothing happens, but if i try another workaround by adding a checkbox to the repeater field and have the condition say show element if value is checked (Jet Engine specific) then your plugin works just fine.
What could be the issue here?
EX:
I have repeater fields of languages, to register technical pdfs.
I would like not to display the Elementor sessions when I don't have pdf files registered.
I used both your example posted in Croco's issue here: https://github.com/Crocoblock/suggestions/issues/2632
But it didn't work. the plugin ends up removing it for good and can't understand my repeatable field.
Is there any fix? Thank you!
In \jet-engine-repeater-values-master\dynamic-tags\jet-engine-repeater-dynamic-tag-text.php its better to use
jet_engine_render_checkbox_values ($result)
(which is a JetEngine function to convert JetEngine checkboxes to string) instead of $this->checkboxes_to_csv_string($result)
i made a repeater field like this:
https://prnt.sc/aqOxkU8FD9KV
https://prnt.sc/opD7GcZH0CyJ
then i made a listing repeater and inside it i used elementor button and set the background color of the btn like this:
https://prnt.sc/Ixp3g3e9acJc
https://prnt.sc/SazdysGYH6k2
the issue is when i set multiple buttons with different bg colors all of the btn's have the same background color (although i set different colors for each btn):
https://prnt.sc/fGZFvY3J9_Tl
hi, there is a bug in elementor version 13.6
the option to choose dynamic field from the plugin doesn't show
Hi i just found out that plugin not working with new elementor 3.16.0. So if you use this plugin don't upgrade elementor jet. Hope author will fix issue.
Hello,
I feel like a loser, but this is the first time using GitHub for a problem. Crocoblock recommend this plugin for my problem, but how do I instal it?
First, thank you for your amazing extension. :)
At the moment your plugin supported, to attach media for a widget as background image? Any of widget have a backround option, and i tried to attach a media (which inside the repeater), unfortunately, only the first one is taken as a value, not the others.
Screenshots:
https://prnt.sc/23pcnd3
https://prnt.sc/23pcsm6
Thanks in advance :)
Hi Matt,
I've tried your plugin on a single post page. I would like to display a heading only if the user filled out the repeater.
I did try different dynamic visibility settings on the heading.
I feel stupid, but could you help me make it work?
In the value field I put the number "0".
Here's a example, where the user DID fill out repeater. So it shows the content of the repeater, but not the Heading, like it should:
https://orgelportal.ch/eventkalender/festimfall/
Many thanks,
Dshamilja
Hi there, apologies if this is a silly question. I came to this plugin from this issue (Crocoblock/suggestions#2515) as I need to accomplish the same thing as the author of that issue (nested repeater listings and filtering the inner one based on the specific value of repeater of the outer one). Can you clarify how I can accomplish this using this plugin? I'm not using Elementor, only Gutenberg, will this be an issue?
Can we still use this with the latest version of JetEngine?
I have a jet engine repeater with 3 keys inside : name, price, link. For each post of a given post_type I want to compare all 'prices' values that exist for this repeater and store the lowest one to a custom meta field. Then I want to also sendthe link value from the same row to another meta field. Finally, those two last meta field should be updated when the post is saved, updated or published.
(It's basically a price comparison tool. )
As I understood, using usort() is the best way to proceed since it will sort each array inside the first one, which is perfect for what I tried to achieve as it will allow me to select the link corresponding to the lowest 'price' value. I also understood that using the publish_post hook should do the trick for triggering this function.
But it's not working and I think that's maybe because I don't really understand how the repeater from jet engine is built. Or how the get_post_meta() works.
//The function to compare values from a given array
function compare_prices($price1, $price2){
if($price1['price'] == $price2['price']){
return rand(0,1) ? 1 : -1//if it is the same price then it is random
}
return $price1[0]['price'] > $price2[0]['price'];
// if not it sorts the array
}
//The function to select the best price and update meta fields
function best_product( $id, $post ) {
if ( get_post_type($post->ID) = 'post_type' ) { // replace post_type with wanted post type
$products = get_post_meta( $post->ID, 'link' );
usort($products, 'compare_prices');
$lowest_price = $products[0]['price'];
$best_link = $products[0]['link'];
update_post_meta( $post->ID , 'best_link' , $best_link);
update_post_meta( $post->ID , 'lowest_price' , $lowest_price);
}
}
add_action( 'publish_post', 'best_product', 10, 2 );
I'm very new at PHP and this really is a huge time consuming issue without getting any result. Any help or tips would be greatly appreciated !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.