2012-02-09 5 views
2

magento 백엔드 카테고리 페이지에 WYSIWGY 필드를 만들려고하는데 작동하지 않는 것 같습니다. 설치 스크립트를 다음과 같이 작성합니다 :magento 백엔드에서 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 to '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 => 사실이 작동하지 않습니다이 쓰고 있어요. _prepareValues ​​() 함수를 덮어 써야합니까? – Hum

+0

Setup.php에서 Mage_Catalog_Model_Resource_Setup을 확장 했습니까? – seanbreeden

관련 문제