2012-02-09 7 views
2

magentoバックエンドでカテゴリページにWYSIWGYフィールドを作成しようとしていますが、動作しないようです。私は、としてインストールスクリプトを書いています:マゼンタバックエンドでWYSIWGYフィールドを作成

'fabric_and_care' => array(
        'type'    => 'text', 
        'backend'   => '', 
        'frontend'   => '', 
        'label'    => 'Fabric and Care Instructions', 
        'input'    => 'textarea', 
        'class'    => '', 
        'visible'   => true, 
        'required'   => false, 
        'user_defined'  => true, 
        'default'   => 0, 
        'searchable'  => false, 
        'filterable'  => false, 
        'comparable'  => false, 
        'visible_on_front' => false, 
        'unique'   => false, 
        'wysiwyg'   => true, 
        'group'    => 'general',       
       ), 

しかし、それだけでテキストエリアではなくWYSIWGYエディタを示しています。私が間違っていることを知っている?

答えて

3

代わりにこれを試してください。基本的にはちょうど'wysiwyg' => true'wysiwyg_enabled' => true

'fabric_and_care' => array(
       'type'    => 'text', 
       'backend'   => '', 
       'frontend'   => '', 
       'label'    => 'Fabric and Care Instructions', 
       'input'    => 'textarea', 
       'class'    => '', 
       'visible'   => true, 
       'required'   => false, 
       'user_defined'  => true, 
       'default'   => 0, 
       'searchable'  => false, 
       'filterable'  => false, 
       'comparable'  => false, 
       'visible_on_front' => false, 
       'unique'   => false, 
       'wysiwyg_enabled'   => true, 
       'group'    => 'general',       
      ), 
+0

これは機能しません。まだWYSIWYGエディタなしでテキストエリアを表示しています。 – Hum

+0

私はこれを私の会社/モジュール/モデル/リソース/ Eav/Mysql4/Setup.phpに書いていますが、wysiwyg_enabled => trueは動作していません。 _prepareValues()関数を上書きする必要がありますか? – Hum

+0

Setup.phpでMage_Catalog_Model_Resource_Setupを拡張しましたか? – seanbreeden

関連する問題