-
AuthorPosts
-
March 6, 2015 at 11:20 am #406915
is it possible to integrate the two editors?
i have created a good looking page using the advanced editor, but would like to add a “more” tag using the default editor to integrate with my members site. however, when i click on default editor everything disappears..
are you able to suggest a solution?
March 6, 2015 at 6:55 pm #407204Hi ptaljaard!
Please turn on debugging mode to see shortcodes on default editor – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
Cheers!
YigitMarch 7, 2015 at 10:25 am #407438thanks, that worked.
related to this, i’ve just added Wishlist Member plugin to allow members section protection. pages created with the advanced editor does not react to the protection added by the Wishlist plugin, but a simple text page created with the default editor does.
do you have any recommendation about how I can troubleshoot this? is this a known integration issue?
thanks
March 9, 2015 at 5:19 am #407862Hey!
Maybe this filter will help to enable/disable the advance layout builder for specific user roles:
add_filter('avf_builder_boxes','custom_post_types_options'); function custom_post_types_options($boxes) { $user_info = get_userdata(1); $user_login = $user_info->user_login; if ($user_login == 'admin') { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('page'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('page'), 'context'=>'normal', 'priority'=>'high' ); }else { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array(), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('post','page'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('post','page'), 'context'=>'normal', 'priority'=>'high' ); } return $boxes; }
The code above will enable it for the user with the “admin” username. For user role conditionals, refer to this link: https://wordpress.org/support/topic/conditional-display-based-on-role
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.