Forum Replies Created
-
AuthorPosts
-
Tan Nguyen
ParticipantDear Nicolas,
Thanks for using MB Conditional Logic, short answer: It supports Tabs.
Because Tabs isn't Meta Box's field, it's a DOM Element so you can hide it via using DOM Selector, as already mentioned in the documentation:
https://metabox.io/docs/meta-box-conditional-logic/#section-use-conditional-logic-outside-meta-box
In your case, you can add this code to your theme
functions.php:add_filter( 'rwmb_outside_conditions', function( $conditions ) { $conditions['.rwmb-tab-nutrient-content'] = [ 'visible' => ["{$prefix}menu_item_type", 'item_type_a_la_carte'] ]; return $conditions; } );Best regards
Tan
Tan Nguyen
ParticipantHi Sinusite,
Perhaps in your context, the maps field's script in loaded before Geolocation. To fix that, go to
inc/class-meta-box-geolocation.phpand replace:add_action('rwmb_enqueue_scripts', array($this, 'enqueue'));with:
add_action('admin_enqueue_scripts', array($this, 'enqueue'));to make sure MB Geolocation loaded first.
Let me know if it works so I'll put the patch to the next release 🙂
Also, I don't understand this:
if $meta_boxes[‘mine’] is called with AND before $meta_boxes[‘with_geo’], it works….
( $meta_boxes[‘1’] can contain only 1 text field )i also put the demo (adress and map fields) in $meta_boxes[‘1’] and it seems not working if there only one metabox.
Best regards,
Tan
Tan Nguyen
ParticipantDear Nicolas,
Sorry for the long silence. Can you please post your code so I can check?
Tan
Tan Nguyen
ParticipantDear Buzzmn,
Thanks for installing our plugin, MB Conditional Logic currently not fully supported Nested Group. I'm working with it but can't promise release date for it, perhaps late Jul.
Best regards
Tan
Tan Nguyen
ParticipantGlad that you like it \m/
Tan Nguyen
ParticipantDear Sinusite,
Thanks for your contributing, I've updated Map field and MB Geolocation.
This is the commit for Map field:
https://github.com/rilwis/meta-box/commit/8fb4448469d80910c6b61ac634b7f95533a7fd04
In case you need to make map field works for now. Please download the latest version of MB Geolocation (1.0.1) and replace your
map.json js directory withhttps://github.com/rilwis/meta-box/blob/master/js/map.js
Best regards,
Tan
Tan Nguyen
ParticipantDear buzzm,
We've fixed this bug, please update Group to the latest version, and apply this patch by replace Image Select to the latest version related to this issue:
https://github.com/rilwis/meta-box/issues/860
The commit here, you can replace file now if you really need, of course, you can wait for the official release:
https://github.com/rilwis/meta-box/commit/3f39e4b65ef02373677ac221464cf11e273fdf45Cheers!
Tan Nguyen
ParticipantDear buzzmn, sorry for late reply, I've tried to fix it but it's a Meta Box bug as reported here:
https://github.com/rilwis/meta-box/issues/860
Currently, I haven't workaround for this. You can use Radio instead of current Image Select, we'll try to fix this bug on Meta Box soon.
Sorry again.
Tan
Tan Nguyen
ParticipantDear Flikweert,
The problem is there are many hidden field with same
post_imagesname created, I'm checking it and will have an answer for you soon.Tan Nguyen
ParticipantOops! Sorry bro, my bad, I though that I have already answered this. Your site doesn't have MB Tabs extension installed so it won't works.
Regards,
TanTan Nguyen
ParticipantDear Buzzmn,
The problem happens when the ID structure is changed. We're looking into that bug and will have a patch this week.
Cheers!
Tan Nguyen
ParticipantHi bronnt2,
Thanks for your question, current version doesn't support nested array in
optionsso we can't use Conditional Logic for now. We're think a way to make this works.Best regards,
Tan
Tan Nguyen
ParticipantHmm, let me check it again, I'll have an answer for you within next 24 hrs.
Tan Nguyen
ParticipantHmm, normally, it should works. Seems that it's a bug of new version, we'll try to fix it soon.
Cheers!
Tan Nguyen
ParticipantYes, it does works with Image Select. Here is the example
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = array( 'id' => 'brand_product', 'title' => 'Brands and Products', 'post_types' => array( 'post', 'page' ), 'context' => 'normal', 'priority' => 'high', // Conditional Logic can be applied to Meta Box // In this example: Show this Meta Box by default. Hide it when post format is aside 'hidden' => array( 'post_format', 'aside' ), 'fields' => array( array( 'id' => 'image_select', 'name' => __( 'Layout', 'your-prefix' ), 'type' => 'image_select', // Array of 'value' => 'Image Source' pairs 'options' => array( 'left' => 'http://placehold.it/90x90&text=Left', 'right' => 'http://placehold.it/90x90&text=Right', 'none' => 'http://placehold.it/90x90&text=None', ), // Allow to select multiple values? Default is false // 'multiple' => true, ), array( 'id' => 'apple_products', 'name' => 'Which Apple product that you love?', 'type' => 'radio', 'options' => array( 'iPhone' => 'iPhone', 'iPad' => 'iPad', 'Macbook' => 'Macbook', 'iWatch' => 'iWatch' ), 'hidden' => array( 'image_select', '!=', 'left' ) ) ) ); return $meta_boxes; } ); -
AuthorPosts