Creating Express Objects programmatically
Permalink
I'm creating Express-Entities from my package controller:
For simple text-attributes that works.
For the more complex topics-attribute-type I don't know how to add parameters to select the correct Topictree and Entry-node (see attached image).
The attribute field will be created on installation - but is not assigned to a topic-category.
Michael
$ag = Express::buildObject('exposee', 'exposees', 'Exposees', $pkg); $ag->addAttribute('text', '[1] => aID_ObjektNr', 'ag_nr'); $ag->addAttribute('topics', 'Inventar', 'topics_inventar');
For simple text-attributes that works.
For the more complex topics-attribute-type I don't know how to add parameters to select the correct Topictree and Entry-node (see attached image).
The attribute field will be created on installation - but is not assigned to a topic-category.
Michael
You can also find the related code for each attribute type in this cheat sheet:
https://github.com/shahroq/whale_c5_cheat_sheet#create-the-entity...