Support Forum
Support › MB Settings Page › Problem with clonable group?
Hi,
i would ask, if there is a bug with clonable group on setting page. Here is sample code:
With this code, on admin site i get only one input (type "text" with id "mb_top_posts") - so not textarea, no checkbox field.
$prefix = 'mb_';
$meta_boxes[] = array(
'id' => 'top_i',
'title' => ' ',
'settings_pages' => 'top-positions',
'tab' => 'position_i',
'fields' => array(
array(
'id' => "{$prefix}top_posts",
'type' => 'group',
'clone' => true,
'fields' => array(
array(
'name' => __('Perex','textdomain'),
'id' => "{$prefix}perex",
'type' => 'textarea'
),
array(
'name' => __('Hide',TEXTDOMAIN),
'id' => "{$prefix}hide",
'type' => 'checkbox'
),
)
)
)
);
(WP 4.7.5, latest metabox plugin and addons)
We have fixed the bug with clone Groups for WP 4.7.5. Please update to the latest version (1.2.4) of the Group and Meta Box.
Don't forget to clear browser cache!
Hi,
v1.2.4 fixed problem with show cloned group (fields), but another problems are here:
- i have no chance to delete cloned groups
- is there a way to remove white background, which is under Group field? (on Settings page, where is no background with param "style=>no-boxes" it looks bad :/)
Please give me a feedback.. (and date to solving this issue)
Hi Hazmi,
We're working on that. We'll fix the CSS for the background and the delete button in cloned groups. Probably will done that early next week.
Hi, i'm sorry, but i really need this addon to work properly .. without this a don't see a sense for byuing it..
Hi Hazmi,
Please give us some hours to fix. Today or latest tomorrow we'll update the extension.
Just a small question: while testing with your code, we see the remove clone button works. Can you post your full code here to test?
Hi Hazmi,
I resolved CSS problem. But I can't meet the problem when deleting cloned group. Below is the video about my testing scenario.
Hi, i tested my code with "columns" extension ... and i noticed, that a i'm posted here without it :/
Your video is fine, so i inspected my code again and find, where the problem is. I have 2 columns, but my setting was "4" for one column .. with this, the setting page has unexpected behavior.
So i'm sorry with this and thank you for your fix with (no) background - can i upgrade the extension now?
Hi Hazmi, new versions for MB Settings Page is available. Please update. Let us know if you see any problem.
Thanks
OK, thank you..