Problem in creating attribute using code
Permalink
Hi guys,
I am working on an add-on in which an attribute name "Model Description" and its type is text area of rich editor, should be created while installing the add-on.
I have used
but it is not working. I think i have missed something.
Any help would be appreciable.
Thank you
Vijay
I am working on an add-on in which an attribute name "Model Description" and its type is text area of rich editor, should be created while installing the add-on.
I have used
Loader::model('collection_types'); Loader::model('collection_attributes'); $model_descriptionAttrKey = CollectionAttributeKey::add('TEXTAREA', array('akHandle'=>'model_description', 'akName' =>t("Model Description"), 'akIsSearchable'=>1, 'akTextareaDisplayMode'=>'rich_text_advanced'), $pkg);
but it is not working. I think i have missed something.
Any help would be appreciable.
Thank you
Vijay