[BUG] Meta Box dynamic tags are not available in Elementor V4 (atomic) widgets

Support › MB Elementor Integrator › [BUG] Meta Box dynamic tags are not available in Elementor V4 (atomic) widgets

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #50275
    Hello DollyHello Dolly
    Participant

    Description

    In the Elementor V4 editor the Meta Box dynamic tags (meta-box-text, meta-box-image, meta-box-url) are missing from the dynamic tags of atomic widgets (e-heading, e-paragraph, e-image…). They are only available in V3 widgets.

    Cause

    Elementor builds the list of tags for atomic widgets in Elementor\Modules\AtomicWidgets\DynamicTags\Dynamic_Tags_Editor_Config::get_tags(). For each tag it converts every control with convert_control_to_atomic(), which throws "Control must have name, section, label, and default" when a control lacks one of those keys; a tag with a control that fails is dropped, unless it sets force_convert_to_atomic.

    The controls of the Meta Box tags (key, and before, after, fallback) have name, section and default but no label, so the conversion fails and all three tags are dropped. Checked by calling convert_control_to_atomic() on each control of meta-box-text and meta-box-image: every one of them throws that exception.

    Version 2.2.8 already handles atomic widgets in group skins (collect_atomic_dynamic_tags()), but the tags cannot be chosen in an atomic widget because of this.

    Expected

    Giving the controls a label (and checking that the key select, which uses groups, converts to an atomic select) should make the tags available in V4.

    Environment

    MB Elementor Integrator 2.2.7 (the tag controls are unchanged in 2.2.8), Meta Box 5.15.2, Elementor 4.3.5, Elementor Pro 4.3.2.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.