Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1149321

    Hey, my problem is that i want to make an Avia-Widget which has two modal_groups.
    I want to create a modal_group inside a modal_group, like this:

    function popup_elements()
    {
        $this->elements = array(
            array(
                "name" => __("edit/create", 'avia_framework' ),
                "desc" => '',
                "type" 			=> "modal_group",
                "id" 			=> "outter_content",
                "modal_title" 	=> __("Edit title", 'avia_framework' ),
                "std"			=> array(
                    array('title'=>__('Titel', 'avia_framework' ), 'icon'=>'43', 'content'=>'Enter content here'),
                ),
                'subelements' 	=> array(
                    array(
                        "name" => __("Title-1", 'avia_framework'),
                        "desc" => __("Add an title here", 'avia_framework'),
                        "id" => "title",
                        "type" => "input",
                        "std" => __("Title1", 'avia_framework')),
                    array(
                        "name" => __("edit/create", 'avia_framework' ),
                        "desc" => '',
                        "type" 			=> "modal_group",
                        "id" 			=> "inner_content",
                        "modal_title" 	=> __("Content", 'avia_framework' ),
                        "std"			=> array(
                            array('title'=>__('Content', 'avia_framework' ), 'icon'=>'43', 'content'=>'Enter content here'),
                        ),
                        'subelements' 	=> array(
                            array(
                                "name" => __("Content 1", 'avia_framework'),
                                "desc" => __("Add content", 'avia_framework'),
                                "id" => "content",
                                "type" => "input",
                                "std" => __("Content", 'avia_framework')),
    
                        )
                    ),
                )
            ),
    
        );
    }

    My Problem is. that the first modal_group overwrites the content of the second modal_group, so I can open infinit tabs on this widget..
    Is there any solution?

    #1150653

    Hey david2709,

    Can u explain again please what problem is? I am not sure it is clear enough what you are trying to achieve.

    Best regards,
    Basilis

    #1156356

    Hey,

    I try to have some specific content in a modal_group.. But inside this modal_group, I want another modal_group.
    Everytime I want to do this, the outter modal_group rewrites the content of the inner modal_group.

    Best regards,
    David

    #1277083

    Same problem here.

    If i open a nested modal_group, i get the content of the first modal_group.

    Is there a solution for this?

    #1278005

    Hi Majjo,

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.