Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Création d’un attribut (upload PDF) pour les catégories en Back Office
 
betadev
Jr. Member
 
Total Posts:  2
Joined:  2012-05-25
 

Bonjour les développeurs magento,

Est-il possible d’ajouter un attribut (upload PDF) pour les catégories en Back Office via l’installateur ?

exemple :

$installer $this;

$installer->startSetup();
                                        
$installer->addAttribute('catalog_category''pdf', array(
                        
'type'              => 'varchar',
                        
'backend'           => 'catalog/category_attribute_backend_file',
                        
'frontend'          => '',
                        
'label'             => 'Pdf',
                        
'input'             => 'image',
                        
'class'             => '',
                        
'source'            => '',
                        
'global'            => 1,
                        
'visible'           => 1,
                        
'required'          => 0,
                        
'user_defined'      => 0,
                        
'default'           => '',
                        
'searchable'        => 0,
                        
'filterable'        => 0,
                        
'comparable'        => 0,
                        
'visible_on_front'  => 1,
                        
'unique'            => 0,
                        
'position'          => 3,
                    ));

$installer->endSetup();

Merci pour votre aide

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top