Показать сообщение отдельно
Старый 24.08.2013, 22:48   #6
Ивано++
Senior Member
 
Аватар для Ивано++
 
Регистрация: 18.01.2013
Адрес: Russia , Moscow
Сообщений: 796
По умолчанию

ОООО - что нашел:
Оказывается через inline - можно делать и такое...


PHP код:
            'images' => array(
                
'exclude'     => 1,
                
'label'       => '',
                
'displayCond' => 'FIELD:images:REQ:true'// Hide if empty
                
'config'  => array(
                    
'type'           => 'inline',
                    
'foreign_table'  => 'tx_spgallery_domain_model_image',
                    
'foreign_field'  => 'gallery',
                    
'foreign_sortby' => 'sorting',
                    
'foreign_label'  => 'name',
                    
'maxitems'       => 9999,
                    
'appearance'     => array(
                        
'expandSingle'                    => TRUE,
                        
'levelLinksPosition'              => 'none',
                        
'showSynchronizationLink'         => FALSE,
                        
'showPossibleLocalizationRecords' => FALSE,
                        
'showAllLocalizationLink'         => FALSE,
                        
'useSortable'                     => TRUE,
                        
'renderItemImage'                 => TRUE,
                        
'enabledControls'                 => array(
                            
'info'                            => FALSE,
                            
'new'                             => FALSE,
                            
'dragdrop'                        => TRUE,
                            
'sort'                            => TRUE,
                            
'hide'                            => FALSE,
                            
'delete'                          => FALSE,
                            
'localize'                        => FALSE,
                        ),
                    ),
                    
'behaviour'      => array(
                        
'localizationMode'                     => 'select',
                        
'localizeChildrenAtParentLocalization' => 1,
                    ),
                    
'itemImage'      => array(
                        
'foreign_field'  => 'file_name',
                        
'height'         => '70c',
                        
'width'          => '100c',
                    ),
                ),
            ), 
Ивано++ вне форума   Ответить с цитированием