Jump to content

j4ck

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

j4ck's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. As i can see in form helper template {elseif $input.type == 'file'} {if isset($input.display_image) && $input.display_image} {if isset($fields_value.image) && $fields_value.image} <div id="image"> {$fields_value.image} <p align="center">{l s='File size'} {$fields_value.size}kb</p> <a href="{$current}&{$identifier}={$form_id}&token={$token}&deleteImage=1"> <img src="../img/admin/delete.gif" alt="{l s='Delete'}" /> {l s='Delete'} </a> $fields_value.image is used to display in all 'file'-type field, when `display_image` is set. This code not support more then one image field without changes. Any thoughts?
  2. Hi, Dawb. Did you modify renderForm() method? How you passed current field values (smalltile) to form?
  3. 'image' => $smallTile ? $smallTile : false What is $smallTile in this example?
  4. Hi, just start with prestashop. Currently adapting my first module, named "PSWidget". Module adds smarty function {pswidget} + custom html renderer. Module description: 0. Install pswidget module 1. Navigate to Preferences - PSWidget 2. Add new pswidget item with name (i.e. "test") and text field filled 3. Modify your whatever-template.tpl, adding pswidget call {pswidget action="text" id="test" cache=300} 4. Refresh page to see changes Draft code available: https://github.com/rustyJ4ck/pswidget/ Has some questions: 1. How to change default selected value for radios: from No to Yes? array( 'type' => 'radio', 'label' => $this->l('Raw:'), 'name' => 'raw', 'required' => false, 'is_bool' => true, 'class' => 't', 'values' => array( array( 'id' => 'pswidget-b-2', 'value' => 1, 'label' => $this->l('Yes') ), array( 'id' => 'pswidget-b-2', 'value' => 0, 'label' => $this->l('No') ) ) ), 2. How to implemet instant checkbox change in list view (like active=status) 'plain' => array( 'type' => 'bool', 'title' => $this->module->l('plain'), 'width' => 40, 'align' => 'center', //? 'callback' => 'printPlainIcon' ), Thx.
×
×
  • Create New...