Forum Replies Created
-
AuthorPosts
-
buzzmn
ParticipantYeah! Great! Thanks a lot and congratulations for your plugins!!!
buzzmn
ParticipantThe bug is created when the id that selects which field to show or hide is named 'layout'. I have changed it and it works!
Thanks for your attention!
buzzmn
ParticipantHi again,
I think the problem is about the IDs of the fields, could I assign different IDs in clones groups as an auto-increment index?buzzmn
ParticipantIn fact, I have detected the bug exactly what does: When you have conditional logic combined with cloned groups the fields that have to be hidden or visible are defined by the first element of the cloned groups. It doesn't matter if it's select or image_select... Let me know if I have explained it correct, so you can understand the problem and if it has a easy solution. Meanwhile I would not use the conditional logic, what a pitty...
Cheers!
buzzmn
ParticipantIn fact I'm using hidden/visible in fields cloned by groups:
$meta_boxes[] = array( 'id' => 'layout-content', 'title' => 'Contenido', 'post_types' => array( 'caso', 'tratamiento' ), 'fields' => array( array( 'name' => 'Añade las filas que desees', 'id' => 'item-row', 'type' => 'group', 'clone' => true, 'fields' => array( array( 'name' => 'Esquema', 'id' => 'layout', 'required' => true, 'type' => 'image_select', 'options' => array( 'textimage' => get_bloginfo('template_url').'/images/settings/layout-textimage.png', 'imagetext' => get_bloginfo('template_url').'/images/settings/layout-imagetext.png', 'onlytext' => get_bloginfo('template_url').'/images/settings/layout-text.png', 'onlyimage' => get_bloginfo('template_url').'/images/settings/layout-image.png', ), 'desc' => 'Si no se escoge ninguna opción por defecto usará el esquema texto a la izquierda e imagen a la derecha' ), array( 'name' => 'Texto', 'id' => 'item-text', 'type' => 'textarea', 'cols' => 1, 'rows' => 5, 'desc' => 'Para poder poner negrita se tiene que encapsular el texto entre [negrita][/negrita] (ejemplo: Esto es un [negrita]ejemplo[/negrita].)', 'visible' => array( 'layout', 'in', array( 'onlytext', 'textimage', 'imagetext' ) ), ), array( 'name' => 'Imágenes', 'id' => 'item-images', 'type' => 'file_advanced', 'mime_type' => 'image', 'desc' => 'Las imágenes se mostrarán una debajo de la otra', 'visible' => array( 'layout', 'in', array( 'onlyimage', 'textimage', 'imagetext' ) ), ), ), ), ), );I don't know if the groups or the clone function does affect to the right behavior of the conditional plugin...
Let me know your opinion.
Thanks!buzzmn
ParticipantI though that we paid $99 as it costs now, so I really though I could use this awesome new new extensions instead of another extensions alternative use this features...
-
AuthorPosts