Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #9074
      Set None
      Participant

      I receive a jquery error message in admin if i use a group metabox inside another one.
      Because of that i can’t see/edit some elements (editor content).

      The metaboxes works on frontend.

        <?php
      
          piklist('field', array(
        'type' => 'group'
        ,'field' => 'section'
        ,'label' =>__('Section','test')
        ,'columns' => 12
        ,'fields' => array(
        array(
          'type' => 'text'
          ,'field' => 'title'
          ,'label' => __('Content', 'test')
          ,'columns' => 12
          ,'attributes' => array(
            'rows' => 5
            )
        ),
        array(
            'type' => 'textarea'
            ,'field' => 'content'
            ,'label' => __('Content', 'test')
            ,'columns' => 12
            ,'attributes' => array(
              'rows' => 5
            )
          ),
         array(
        'type' => 'group'
        ,'field' => 'item_tab'
        ,'label' =>__('Item Tab Section','test')
        ,'columns' => 12
        ,'add_more' => true
        ,'fields' => array(
        array(
        'type' => 'text'
        ,'field' => 'headline'
        ,'label' => __('Headline', 'test')
        ,'columns' => 12
        ),
         array(
        'type' => 'group'
        ,'field' => 'item_tab_list'
        ,'label' =>__('List:','test')
        ,'columns' => 12
        ,'add_more' => true
        ,'fields' => array(
        array(
        'type' => 'text'
        ,'field' => 'title'
        ,'label' => __('Title', 'test')
        ,'columns' => 12
        ),
        array(
          'type' => 'editor'
          ,'field' => 'content'
          ,'label' => __('Content', 'test')
          ,'options' => array(
            'media_buttons' => true
            ,'teeny' => true
            ,'textarea_rows' => 5
            ,'drag_drop_upload' => false
            ,'tinymce' => array(
              'resize' => true
              ,'wp_autoresize_on' => true
            )
          )
        )
        ))
        ))
        )
        ));
      
        ?>
      Attachments:
      You must be logged in to view attached files.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.