Forum Replies Created
-
AuthorPosts
-
akamiseMember@Steve – I’d do that but it’s a local environment(and vagrant share doesn’t like having a ton of wp instances apparently). Anyway, I managed to fix the issue by deleting piklist alltogether(the nice way – disable all plugins that depend on piklist; disable piklist; delete piklist) and then reinstalling it. The update procedure went fine and best of all, my original issue is fixed.
Thank’s a lot for the help, you’re great!
akamiseMember@Steve – Thanks a lot, you’re awesome. Unfortunaltely I’m having a weird issue with the db upgrade that the new version requires – `Active Plugin Versions Updated…
Legacy post_relationships Table Deleted…
Settings Updated…
piklist_core – shortcode_ui`
It’s been sitting like that for like 15 minutes. The piklist fields from the code above also dissapeared from the metabox. Is there anything I can do to repair this manually or I should restore a backup and try again?
I’ll let you guys both know if this fixes my original issue, when I get it running again.
As for the 5-star rating – I did that a very long time ago 🙂
akamiseMemberIt’s the latest one from wordpress.org – 0.9.4.29, running on WordPress 4.3.1
akamiseMemberIt’s a nested addmore and I think there’s no other way around that. I’m making something similar to a page builder – An ‘addmore’ that adds a ‘row’ to the page, and nested addmores that add blocks of various sizes to the row. The idea is that I need to have different types of blocks and some of them won’t need certain fields. The conditional functionality would be ideal in that case. The code is below. The issue is on line 79.
piklist('field', array( 'type' => 'group', 'field' => 'page-block-row', 'label' => __( 'Page blocks'), 'columns' => 12, 'add_more' => true, 'description' => __( 'Make sure the sizes of all blocks on a row add up to 1 or less(ex. 3/4 + 1/4 = 1). If you exceed 1, you will break the layout.', 'shtrak-blocks' ), 'fields' => array( array( 'type' => 'select', 'field' => 'row-height', 'columns' => 12, 'choices' => array( 'tall' => __( 'Tall', 'shtrak-types' ), 'short' => __( 'Short', 'shtrak-types' ), 'fullwidth' => __( 'Full Width', 'shtrak-types' ) ) ), array( 'type' => 'colorpicker', 'field' => 'row-background-color', 'label' => __( 'Background Color', 'shtrak-blocks' ), 'columns' => 12, 'conditions' => array( array( 'field' => 'page-block-row:row-height', 'value' => 'fullwidth' ) ) ), array( 'type' => 'group', 'field' => 'block', 'add_more' => true, 'fields' => array( array( 'type' => 'select', 'label' => __( 'Block Width', 'shtrak-blocks' ), 'field' => 'block-width', 'columns' => 6, 'choices' => array( 'one-half' => '1/2', 'three-fourths' => '3/4', 'full-width' => '1', 'one-fourth' => '1/4' ), ), array( 'type' => 'select', 'label' => __( 'Block Type', 'shtrak-blocks' ), 'field' => 'block-type', 'columns' => 6, 'choices' => array( 'type-1' => __( 'Type 1', 'shtrak-blocks' ), 'type-2' => __( 'Type 2', 'shtrak-blocks' ), 'type-3' => __( 'Type 3', 'shtrak-blocks' ), 'type-4' => __( 'Type 4', 'shtrak-blocks' ), 'social' => __( 'Social', 'shtrak-blocks' ) ) ), array( 'type' => 'text', 'label' => __( 'Title', 'shtrak-blocks' ), 'field' => 'block-title', 'columns' => 12 ), array( 'type' => 'text', 'label' => __( 'Subtitle', 'shtrak-blocks' ), 'field' => 'block-subtitle', 'columns' => 12, //below is the condition that's not working. 'conditions' => array( array( 'field' => 'page-block-row:block:block-type', 'value' => 'type-1' ) ) ), array( 'type' => 'textarea', 'field' => 'block-description', 'label' => __( 'Description', 'shtrak-blocks' ), 'columns' => 12 ), array( 'type' => 'text', 'field' => 'block-button-label', 'label' => __( 'Action button label', 'shtrak-blocks' ), 'columns' => 6 ), array( 'type' => 'text', 'field' => 'block-button-link', 'label' => __( 'Action button link', 'shtrak-blocks' ), 'columns' => 6 ) ) ) ) ));btw, piklist is great, thanks for that.
akamiseMemberHey guys. Is the issue in the original post fixed? Conditionals are not working for me if the trigger field is in a nested group(so
'field' => 'group:field'works fine, but'field' => 'group:anothergroup:field'isn’t doing anything. I’m not sure if I’m bumping into the same known bug or it’s a new thing. -
AuthorPosts