dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
shop-product-image_en.fd.php
Go to the documentation of this file.
1<?php
2$messages = array();
3$messages['save_success'] = 'Data was saved';
4$messages['save_succeass'] = $messages['save_success'];
5$messages['save_error'] = 'Data could not be saved';
6
7$addField=function($name,$type,$label,$rules,$tpl,$extra=array()) use (&$fields){
8 $field=array('name'=>$name,'type'=>$type,'index'=>'','length'=>$extra['length'] ?? '','default'=>$extra['default'] ?? '','label'=>$label,'rules'=>$rules,'tooltip'=>'','errormsg'=>'','placeholder'=>'','convert'=>'','protect'=>'0','mask'=>'','data'=>$extra['data'] ?? '','options'=>$extra['options'] ?? '','tpl'=>$tpl);
10};
11$addField('product_id','int','Product','int','text-label');
12$addField('group_id','int','Product group','int','text-label');
13$addField('media_id','int','CMS medium','int','text-label',array('default'=>'0'));
14$addField('image_path','varchar','Image path','*|max=255','text-label');
15$addField('title','varchar','Title','*|max=180','text-label');
16$addField('alt','varchar','Alt text','*|max=255','text-label');
17$addField('is_primary','int','Primary image','int','checkbox-label');
18$addField('active','int','Active','int','checkbox-label',array('default'=>'1'));
19$addField('sorter','int','Sorting','int','text-label');
20?>
$messages
Definition config.fd.php:2
if($web->content_permalink_redirect_target() !=='') $tpl