We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Shared form with image

Development and Programming

Reinos's avatar
Reinos
79 posts
7 years ago
Reinos's avatar Reinos

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?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.