c5.7.X install custom file attribute via package controller
Permalink
Hi
I need help in installing a file attribute via package controller. My script:
The controller installs the attribute but it is now under page attributes located.
What is the right way to set it as file attribute? Maybe somebody can help?
Greets
Marcus
I need help in installing a file attribute via package controller. My script:
$att = AttributeType::getByHandle('textarea'); $myAttribute = CollectionAttributeKey::getByHandle('description_long'); if(!is_object($myAttribute)){ CollectionAttributeKey::add($att, array( 'akHandle' => 'description_long', 'akName' => t('Beschreibung lange Version'), 'akIsSearchable' => true, 'akTextareaDisplayMode' => 'rich_text', 'akCategoryID' => 3 ), $pkg); }
The controller installs the attribute but it is now under page attributes located.
What is the right way to set it as file attribute? Maybe somebody can help?
Greets
Marcus