Guest User

repeating group with image upload

a guest
Sep 23rd, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. piklist('field', array(
  2.     'type' => 'group'
  3. ,'field' => 'demo_group_add_more'
  4. ,'add_more' => true
  5. ,'label' => __('Group ~ List Example')
  6. ,'description' => __('This is an example of how to build a list with multiple element types.')
  7. ,'fields' => array(
  8.         array(
  9.             'type' => 'file'
  10.         ,'field' => 'upload_simple'
  11.         ,'label' => 'Attach File(s)'
  12.         ,'value' => 'Upload'
  13.         )    ,
  14.         array(
  15.             'type' => 'text'
  16.         ,'columns' => 6
  17.         ,'field' => 'slide_title'
  18.         ,'label' => 'Slide title'
  19.         ,'description' => 'Enter the title of the slide'
  20.         ,'value' => 'Slide title'
  21.         ,'attributes' => array(
  22.             'class' => 'text'
  23.         )
  24.         )   ,
  25.         array(
  26.             'type' => 'textarea'
  27.         ,'field' => 'slide_caption'
  28.         ,'label' => 'Slide caption'
  29.         ,'description' => 'Enter the text for the slide here'
  30.         ,'attributes' => array(
  31.             'class' => 'text'
  32.         ,'columns' => 12
  33.         )
  34.         )
  35.     )
  36. ));
Advertisement
Add Comment
Please, Sign In to add comment