- This topic has 3 replies, 2 voices, and was last updated 5 years, 10 months ago by
Steve.
Viewing 3 reply threads
-
AuthorPosts
-
-
March 30, 2016 at 2:55 pm #6210
jrcreativeMemberWhen I add an editor field to a group with add_more it breaks it out of the sequence. If I change ‘editor’ to a ‘textarea’ it works as expected. Am I missing something? Here’s my code:
piklist('field' , [ 'type' => 'group' ,'label' => __('Event') ,'field' => 'pro_card_events' ,'add_more' => true ,'columns' => 12 ,'template' => 'field' ,'fields' => [ ['type' => 'text' ,'field' => 'event_title' ,'label' => __('Event Title') ,'columns' => 12 ] ,['type' => 'datepicker' ,'field' => 'event_date' ,'label' => __('Date') ,'columns' => 6 ] ,['type' => 'text' ,'field' => 'event_time' ,'label' => __('Time') ,'columns' => 6 ] ,['type' => 'textarea' ,'field' => 'event_description' ,'label' => __('Description') ,'columns' => 12 ,'template' => 'field' ] ,['type' => 'text' ,'field' => 'event_location' ,'label' => __('Location') ,'columns' => 12 ] ,['type' => 'text' ,'field' => 'event_link' ,'label' => __('Event Link') ,'columns' => 8 ] ,['type' => 'text' ,'field' => 'event_link_text' ,'label' => __('Event Link Text') ,'columns' => 4 ] ] -
April 1, 2016 at 8:57 pm #6222
SteveKeymasterI used this code and it seemed to work for me. See screenshot:
piklist('field' , array( 'type' => 'group' ,'label' => __('Event') ,'field' => 'pro_card_events' ,'add_more' => true ,'columns' => 12 ,'template' => 'field' ,'fields' => array( array( 'type' => 'text' ,'field' => 'event_title' ,'label' => __('Event Title') ,'columns' => 12 ) ,array( 'type' => 'datepicker' ,'field' => 'event_date' ,'label' => __('Date') ,'columns' => 6 ) ,array( 'type' => 'text' ,'field' => 'event_time' ,'label' => __('Time') ,'columns' => 6 ) ,array( 'type' => 'editor' ,'field' => 'event_description' ,'label' => __('Description') ,'columns' => 12 ,'template' => 'field' ) ,array( 'type' => 'text' ,'field' => 'event_location' ,'label' => __('Location') ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'event_link' ,'label' => __('Event Link') ,'columns' => 8 ) ,array( 'type' => 'text' ,'field' => 'event_link_text' ,'label' => __('Event Link Text') ,'columns' => 4 ) ) ));Attachments:
You must be logged in to view attached files. -
April 1, 2016 at 11:47 pm #6226
jrcreativeMemberah, I was using 9.4.x. I upgraded to 9.9.7 and all is well.
-
April 1, 2016 at 11:51 pm #6227
SteveKeymasternice! Closing ticket.
-
-
AuthorPosts
Viewing 3 reply threads
- The topic ‘editor breaks the add_more’ is closed to new replies.