diff --git a/MenuItem.php b/MenuItem.php index 3a6f097..38cf2ca 100644 --- a/MenuItem.php +++ b/MenuItem.php @@ -12,9 +12,12 @@ class MenuItem extends AbstractItem { * @param string $label */ public function __construct(string $type, string $label) { + global $INFO; $this->type = $type; $this->label = $label; parent::__construct(); - trigger_error("generating a menu item for type \"$this->type\" not implemented in ".get_class($this), E_USER_WARNING); + // Edit the item to show a link to the requested children page + $this->id = $this->type.':'.$INFO['id']; + $this->params = []; } }