Add select attribute WITH multiple options allowed programmatically
Permalink
Hey,
i want to add a page select attribute in my package with multiple options allowed:
How can i achieve this?
Thanks in advance,
Matthias
i want to add a page select attribute in my package with multiple options allowed:
$type = AttributeType::getByHandle('select'); $cab = CollectionAttributeKey::add($type, array('akHandle' => 'attribute_key_handle', 'akName' => 'Attribute Name', 'akIsSearchable' => true), $pkg); // 2DO: allow multiple options to be selected ;)
How can i achieve this?
Thanks in advance,
Matthias