Thread

Shared form with image

November 23, 2017 10:19am

Subscribe [1]
  • #1 / Nov 23, 2017 10:19am

    Reinos

    74 posts

    Hi there,

    To use the shared form with an image you need filepicker configuration. But how do i setup those configuration?

    $link = $fp->getLink('Choose a logo')
       ->withImage('logo')
       ->withValueTarget('logo');
    
    $vars['sections'] = array(
       array(
        array(
         'title' => 'logo',
         'fields' => array(
          'logo' => array(
           'type' => 'image',
           'id' => 'logo',
           'edit' => TRUE,
           'image' => ee()->addon_settings->item('logo'),
           'value' =>ee()->addon_settings->item('logo')
          )
         )
        )
       )
      );

    Am i missing something?

ExpressionEngine News

#eecms, #events, #releases